[FFmpeg-cvslog] avcodec/aacsbr: Assert that bs_num_env is positive
Michael Niedermayer
git at videolan.org
Sat Jul 18 20:46:04 CEST 2015
ffmpeg | branch: release/2.7 | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 1 02:08:25 2015 +0200| [bbcf6f5c6200c3458dc344c4ba4abac316c322b6] | committer: Michael Niedermayer
avcodec/aacsbr: Assert that bs_num_env is positive
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 2e13a45b1a9a69456631e582bbb06954d169eb55)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bbcf6f5c6200c3458dc344c4ba4abac316c322b6
---
libavcodec/aacsbr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c
index ca6dad7..a39b78d 100644
--- a/libavcodec/aacsbr.c
+++ b/libavcodec/aacsbr.c
@@ -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,
(const float (*)[40][2]) sbr->X_low, sbr->k[0]);
sbr_chirp(sbr, &sbr->data[ch]);
+ av_assert0(sbr->data[ch].bs_num_env > 0);
sbr_hf_gen(ac, sbr, sbr->X_high,
(const float (*)[40][2]) sbr->X_low,
(const float (*)[2]) sbr->alpha0,
More information about the ffmpeg-cvslog
mailing list