ratecontrol: fix get_fps() argument
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 11 Sep 2012 15:40:54 +0000 (17:40 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 11 Sep 2012 15:50:14 +0000 (17:50 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ratecontrol.c

index 4415d85..bc399b4 100644 (file)
@@ -253,7 +253,7 @@ int ff_rate_control_init(MpegEncContext *s)
                 rcc->frame_count[rce.pict_type] ++;
 
                 get_qscale(s, &rce, rcc->pass1_wanted_bits/rcc->pass1_rc_eq_output_sum, i);
-                rcc->pass1_wanted_bits+= s->bit_rate/get_fps(s); //FIXME misbehaves a little for variable fps
+                rcc->pass1_wanted_bits+= s->bit_rate/get_fps(s->avctx); //FIXME misbehaves a little for variable fps
             }
         }