1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/ratecontrol: silence "warning: expected_bits may be used uninitialized in this function"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-05-20 15:49:49 +02:00
parent 9c49d5908d
commit f099cdaba3

View File

@ -920,7 +920,7 @@ static int init_pass2(MpegEncContext *s)
double rate_factor = 0; double rate_factor = 0;
double step; double step;
const int filter_size = (int)(a->qblur * 4) | 1; 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; double *qscale, *blurred_qscale, qscale_sum;
/* find complexity & const_bits & decide the pict_types */ /* find complexity & const_bits & decide the pict_types */