summaryrefslogtreecommitdiff
path: root/libavcodec/aacsbr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-26 16:36:29 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-26 16:36:29 +0100
commitc6d3b3be1555257ff3f88da6b8dca2158dad2a85 (patch)
tree86ef5aafab5963843be0bbc37c616fc83b10d80d /libavcodec/aacsbr.c
parente907aa98cd27b52283927a8654091c2cd5ff2eeb (diff)
downloadffmpeg-c6d3b3be1555257ff3f88da6b8dca2158dad2a85.tar.gz
aacsbr: Silence warning: max_qmf_subbands may be used uninitialized in this function
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/aacsbr.c')
-rw-r--r--libavcodec/aacsbr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c
index aa728f62c1..1820f80443 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,