[FFmpeg-cvslog] avcodec/aacsbr: Assert that bs_num_env is positive
Michael Niedermayer
git at videolan.org
Thu Aug 20 14:53:46 CEST 2015
ffmpeg | branch: release/2.4 | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 1 02:08:25 2015 +0200| [7fdc2ba3d46e6f5e8cd0634f1bd4d84fee8e078c] | 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=7fdc2ba3d46e6f5e8cd0634f1bd4d84fee8e078c
---
libavcodec/aacsbr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c
index 783783c..9d12cb8 100644
--- a/libavcodec/aacsbr.c
+++ b/libavcodec/aacsbr.c
@@ -1719,6 +1719,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