This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
ac3dec: simplify exponent bounds checking
Originally committed as revision 16022 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Justin Ruggles
16 years ago
parent
97679e6e38
commit
2ceccf045c
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavcodec/ac3dec.c
+ 1
- 1
libavcodec/ac3dec.c
View File
@@ -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 > 24
U
)
return -1;
switch (group_size) {
case 4: dexps[j++] = prevexp;
Write
Preview
Loading…
Cancel
Save