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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/18/head
Michael Niedermayer 12 years ago
parent 9c49d5908d
commit f099cdaba3
  1. 2
      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 */

Loading…
Cancel
Save