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
aacsbr: change order of operation to prevent out of array read
Fixes CID732250 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer
13 years ago
parent
24778c32d8
commit
c2340831b8
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavcodec/aacsbr.c
+ 1
- 1
libavcodec/aacsbr.c
View File
@@ -555,7 +555,7 @@ static int sbr_hf_calc_npatches(AACContext *ac, SpectralBandReplication *sbr)
k = sbr->n_master;
} while (sb != sbr->kx[1] + sbr->m[1]);
if (sbr->patch_num_subbands[sbr->num_patches-1] < 3
&& sbr->num_patches > 1
)
if (sbr->
num_patches > 1 && sbr->
patch_num_subbands[sbr->num_patches-1] < 3)
sbr->num_patches--;
return 0;
Write
Preview
Loading…
Cancel
Save