Commit f12edc64 authored by Josh Coalson's avatar Josh Coalson
Browse files

fix assertion bug

parent 64df7151
......@@ -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;
}
......
Supports Markdown
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