fix assertion bug

This commit is contained in:
Josh Coalson 2002-10-11 06:24:33 +00:00
parent 64df7151c1
commit f12edc643b
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}