Commit cda11e5d authored by kostya's avatar kostya

Bink version 'h' also has chroma planes swapped

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22236 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b798c299
...@@ -956,7 +956,7 @@ static av_cold int decode_init(AVCodecContext *avctx) ...@@ -956,7 +956,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
} }
flags = AV_RL32(avctx->extradata); flags = AV_RL32(avctx->extradata);
c->has_alpha = flags & BINK_FLAG_ALPHA; c->has_alpha = flags & BINK_FLAG_ALPHA;
c->swap_planes = c->version >= 'i'; c->swap_planes = c->version >= 'h';
if (!bink_trees[15].table) { if (!bink_trees[15].table) {
for (i = 0; i < 16; i++) { for (i = 0; i < 16; i++) {
const int maxbits = bink_tree_lens[i][15]; const int maxbits = bink_tree_lens[i][15];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment