mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/aacsbr: Assert that bs_num_env is positive
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 2e13a45b1a
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e740506d31
commit
bbcf6f5c62
@ -1726,6 +1726,7 @@ void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac,
|
|||||||
sbr->c.sbr_hf_inverse_filter(&sbr->dsp, sbr->alpha0, sbr->alpha1,
|
sbr->c.sbr_hf_inverse_filter(&sbr->dsp, sbr->alpha0, sbr->alpha1,
|
||||||
(const float (*)[40][2]) sbr->X_low, sbr->k[0]);
|
(const float (*)[40][2]) sbr->X_low, sbr->k[0]);
|
||||||
sbr_chirp(sbr, &sbr->data[ch]);
|
sbr_chirp(sbr, &sbr->data[ch]);
|
||||||
|
av_assert0(sbr->data[ch].bs_num_env > 0);
|
||||||
sbr_hf_gen(ac, sbr, sbr->X_high,
|
sbr_hf_gen(ac, sbr, sbr->X_high,
|
||||||
(const float (*)[40][2]) sbr->X_low,
|
(const float (*)[40][2]) sbr->X_low,
|
||||||
(const float (*)[2]) sbr->alpha0,
|
(const float (*)[2]) sbr->alpha0,
|
||||||
|
Loading…
Reference in New Issue
Block a user