[FFmpeg-cvslog] aacsbr: Silence warning: max_qmf_subbands may be used uninitialized in this function

Michael Niedermayer git at videolan.org
Tue Feb 26 16:56:11 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Feb 26 16:36:29 2013 +0100| [c6d3b3be1555257ff3f88da6b8dca2158dad2a85] | committer: Michael Niedermayer

aacsbr: Silence warning: max_qmf_subbands may be used uninitialized in this function

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c6d3b3be1555257ff3f88da6b8dca2158dad2a85
---

 libavcodec/aacsbr.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c
index aa728f6..1820f80 100644
--- a/libavcodec/aacsbr.c
+++ b/libavcodec/aacsbr.c
@@ -399,6 +399,8 @@ static int sbr_make_f_master(AACContext *ac, SpectralBandReplication *sbr,
         max_qmf_subbands = 35;
     } else if (sbr->sample_rate >= 48000)
         max_qmf_subbands = 32;
+    else
+        av_assert0(0);
 
     if (sbr->k[2] - sbr->k[0] > max_qmf_subbands) {
         av_log(ac->avctx, AV_LOG_ERROR,



More information about the ffmpeg-cvslog mailing list