From 208f3abb917757743313da0da714e525e03159d2 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 21 Nov 2014 12:57:37 +0000 Subject: [PATCH] aacsbr: always initialize max_qmf_subbands Fixes a wordly warning from clang -Wsometimes-uninitialized. --- libavcodec/aacsbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;