Commit f099cdab authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9c49d590
...@@ -920,7 +920,7 @@ static int init_pass2(MpegEncContext *s) ...@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment