Commit ed9db9ce authored by jbr's avatar jbr

ac3dec: simplify exponent bounds checking

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16022 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e859ffc1
......@@ -392,7 +392,7 @@ static int decode_exponents(GetBitContext *gbc, int exp_strategy, int ngrps,
prevexp = absexp;
for(i=0,j=0; i<ngrps*3; i++) {
prevexp += dexp[i] - 2;
if (prevexp < 0 || prevexp > 24)
if (prevexp > 24U)
return -1;
switch (group_size) {
case 4: dexps[j++] = prevexp;
......
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