summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-20 15:49:49 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-20 15:49:49 +0200
commitf099cdaba38dfaf1eb666df17c6739da500ddbf8 (patch)
treeff261402170d8e92db144d6be99c06641bbfceb8 /libavcodec
parent9c49d5908d0790f7f1e7b0f2eb077dac2d2d7907 (diff)
downloadffmpeg-streaming-f099cdaba38dfaf1eb666df17c6739da500ddbf8.zip
ffmpeg-streaming-f099cdaba38dfaf1eb666df17c6739da500ddbf8.tar.gz
avcodec/ratecontrol: silence "warning: expected_bits may be used uninitialized in this function"
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ratecontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index 2d1baaa..bf3321d 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.c
@@ -920,7 +920,7 @@ static int init_pass2(MpegEncContext *s)
double rate_factor = 0;
double step;
const int filter_size = (int)(a->qblur * 4) | 1;
- double expected_bits;
+ double expected_bits = 0; // init to silence gcc warning
double *qscale, *blurred_qscale, qscale_sum;
/* find complexity & const_bits & decide the pict_types */
OpenPOWER on IntegriCloud