comparison bink.c @ 11371:4532987cd74b libavcodec

Bink version 'h' also has chroma planes swapped
author kostya
date Sat, 06 Mar 2010 15:09:14 +0000
parents 98970e51365a
children 34080d73a504
comparison
equal deleted inserted replaced
11370:4b3da727d832 11371:4532987cd74b
954 av_log(avctx, AV_LOG_ERROR, "Extradata missing or too short\n"); 954 av_log(avctx, AV_LOG_ERROR, "Extradata missing or too short\n");
955 return -1; 955 return -1;
956 } 956 }
957 flags = AV_RL32(avctx->extradata); 957 flags = AV_RL32(avctx->extradata);
958 c->has_alpha = flags & BINK_FLAG_ALPHA; 958 c->has_alpha = flags & BINK_FLAG_ALPHA;
959 c->swap_planes = c->version >= 'i'; 959 c->swap_planes = c->version >= 'h';
960 if (!bink_trees[15].table) { 960 if (!bink_trees[15].table) {
961 for (i = 0; i < 16; i++) { 961 for (i = 0; i < 16; i++) {
962 const int maxbits = bink_tree_lens[i][15]; 962 const int maxbits = bink_tree_lens[i][15];
963 bink_trees[i].table = table + i*128; 963 bink_trees[i].table = table + i*128;
964 bink_trees[i].table_allocated = 1 << maxbits; 964 bink_trees[i].table_allocated = 1 << maxbits;