mirror of https://github.com/xiph/flac
fix assertion bug
This commit is contained in:
parent
64df7151c1
commit
f12edc643b
|
@ -243,7 +243,10 @@ unsigned FLAC__format_get_max_rice_partition_order_from_blocksize_limited_max_an
|
|||
while(max_rice_partition_order > 0 && (blocksize >> max_rice_partition_order) <= predictor_order)
|
||||
max_rice_partition_order--;
|
||||
|
||||
FLAC__ASSERT(blocksize >> max_rice_partition_order > predictor_order);
|
||||
FLAC__ASSERT(
|
||||
(max_rice_partition_order == 0 && blocksize >= predictor_order) ||
|
||||
(max_rice_partition_order > 0 && blocksize >> max_rice_partition_order > predictor_order)
|
||||
);
|
||||
|
||||
return max_rice_partition_order;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue