aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2014-11-21 12:57:37 +0000
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-24 01:30:15 +0000
commit208f3abb917757743313da0da714e525e03159d2 (patch)
tree11716139be5e00f572b325a75d11fe3a038e9e3c /libavcodec
parent55b59fab880a9fcdd30f97c5170af282087ac4f7 (diff)
downloadffmpeg-208f3abb917757743313da0da714e525e03159d2.tar.gz
aacsbr: always initialize max_qmf_subbands
Fixes a wordly warning from clang -Wsometimes-uninitialized.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/aacsbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aacsbr.c b/libavcodec/aacsbr.c
index 76c1014cce..52ebe65b01 100644
--- a/libavcodec/aacsbr.c
+++ b/libavcodec/aacsbr.c
@@ -321,7 +321,7 @@ static int check_n_master(AVCodecContext *avctx, int n_master, int bs_xover_band
static int sbr_make_f_master(AACContext *ac, SpectralBandReplication *sbr,
SpectrumParameters *spectrum)
{
- unsigned int temp, max_qmf_subbands;
+ unsigned int temp, max_qmf_subbands = 0;
unsigned int start_min, stop_min;
int k;
const int8_t *sbr_offset_ptr;