Skip to content

Commit

Permalink
VIDEO: Add two untested Bink versions
Browse files Browse the repository at this point in the history
If we encounter them, we need to see if they decode properly.
  • Loading branch information
DrMcCoy committed Aug 18, 2018
1 parent 8ae052f commit 82aa102
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/video/bink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ static const uint32 kBIKgID = MKTAG('B', 'I', 'K', 'g');
static const uint32 kBIKhID = MKTAG('B', 'I', 'K', 'h');
static const uint32 kBIKiID = MKTAG('B', 'I', 'K', 'i');

static const uint32 kBIKbID = MKTAG('B', 'I', 'K', 'b');
static const uint32 kBIKkID = MKTAG('B', 'I', 'K', 'i');

static const uint32 kKB2aID = MKTAG('K', 'B', '2', 'a');
static const uint32 kKB2dID = MKTAG('K', 'B', '2', 'd');
static const uint32 kKB2fID = MKTAG('K', 'B', '2', 'f');
Expand Down Expand Up @@ -511,6 +514,8 @@ void Bink::load() {
if ((_id == kKB2aID) || (_id == kKB2dID) || (_id == kKB2fID) || (_id == kKB2gID) ||
(_id == kKB2hID) || (_id == kKB2iID) || (_id == kKB2jID) || (_id == kKB2kID))
throw Common::Exception("Bink 2 (%s) is not supported", Common::debugTag(_id).c_str());
if ((_id == kBIKbID) || (_id == kBIKkID))
throw Common::Exception("Untested Bink version %s", Common::debugTag(_id).c_str());
if ((_id != kBIKfID) && (_id != kBIKgID) && (_id != kBIKhID) && (_id != kBIKiID))
throw Common::Exception("Unknown Bink FourCC %s", Common::debugTag(_id).c_str());

Expand Down

0 comments on commit 82aa102

Please sign in to comment.