[FFmpeg-cvslog] ratecontrol: fix get_fps() argument
Michael Niedermayer
git at videolan.org
Tue Sep 11 17:51:20 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep 11 17:40:54 2012 +0200| [50dba71b7d848d0ea52491fbdfd2fd037c9298c2] | committer: Michael Niedermayer
ratecontrol: fix get_fps() argument
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=50dba71b7d848d0ea52491fbdfd2fd037c9298c2
---
libavcodec/ratecontrol.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c
index 4415d85..bc399b4 100644
--- a/libavcodec/ratecontrol.c
+++ b/libavcodec/ratecontrol.c
@@ -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
}
}
More information about the ffmpeg-cvslog
mailing list