Fix faulty assert that stops the program from working with inter frames.

- The assert would be true after the next if block, but in it's current place
  it's false.
This commit is contained in:
Ari Koivula 2014-04-22 10:57:38 +03:00
parent 54270f271d
commit 88a67a4e49

View file

@ -1649,7 +1649,7 @@ void encode_transform_tree(const encoder_control * const encoder, cabac_data* ca
// Tell clang-analyzer what is up. For some reason it can't figure out from // Tell clang-analyzer what is up. For some reason it can't figure out from
// asserting just depth. // asserting just depth.
assert(width == 4 || width == 8 || width == 16 || width == 32); assert(width == 4 || width == 8 || width == 16 || width == 32 || width == 64);
// Split transform and increase depth // Split transform and increase depth
if (depth == 0 || cur_cu->tr_depth > depth) { if (depth == 0 || cur_cu->tr_depth > depth) {
@ -1676,7 +1676,6 @@ void encode_transform_tree(const encoder_control * const encoder, cabac_data* ca
| cu_c->coeff_top_v[depth+1]; | cu_c->coeff_top_v[depth+1];
} }
return; return;
} }