Commit 29d1df66 authored by Michael Niedermayer's avatar Michael Niedermayer

mpegaudiodec: replace assert() by check under #ifdef DEBUG

The assert can be false with some invalid inputs, the check is
too expensive to always do though for just a warning message.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3865ec2a
...@@ -263,7 +263,10 @@ static inline int l3_unscale(int value, int exponent) ...@@ -263,7 +263,10 @@ static inline int l3_unscale(int value, int exponent)
e = table_4_3_exp [4 * value + (exponent & 3)]; e = table_4_3_exp [4 * value + (exponent & 3)];
m = table_4_3_value[4 * value + (exponent & 3)]; m = table_4_3_value[4 * value + (exponent & 3)];
e -= exponent >> 2; e -= exponent >> 2;
assert(e >= 1); #ifdef DEBUG
if(e < 1)
av_log(0, AV_LOG_WARNING, "l3_unscale: e is %d\n", e);
#endif
if (e > 31) if (e > 31)
return 0; return 0;
m = (m + (1 << (e - 1))) >> e; m = (m + (1 << (e - 1))) >> e;
......
Markdown is supported
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