You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
aacsbr: change order of operation to prevent out of array read
CC: libav-stable@libav.org Bug-Id: CID 732250
This commit is contained in:
committed by
Vittorio Giovara
parent
9f6f407463
commit
930ffd46e1
@@ -549,7 +549,8 @@ static int sbr_hf_calc_npatches(AACContext *ac, SpectralBandReplication *sbr)
|
|||||||
k = sbr->n_master;
|
k = sbr->n_master;
|
||||||
} while (sb != sbr->kx[1] + sbr->m[1]);
|
} 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--;
|
sbr->num_patches--;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user