From: Loren Merritt Date: Tue, 20 Apr 2010 09:17:18 +0000 (+0000) Subject: Fix printing of bitrate when timestamps aren't available X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=e37a4907a51c16ebe16cbdffcd87a5d8fc3c342c;p=x264.git Fix printing of bitrate when timestamps aren't available Doesn't affect x264cli, but was broken in some other apps in CFR mode. --- diff --git a/encoder/encoder.c b/encoder/encoder.c index f641f638..3370eb45 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -2913,7 +2913,7 @@ void x264_encoder_close ( x264_t *h ) float fps = (float) h->param.i_fps_num / h->param.i_fps_den; float f_bitrate; /* duration algorithm fails with one frame */ - if( i_count == 1 ) + if( !h->param.b_vfr_input || i_count == 1 ) f_bitrate = fps * SUM3(h->stat.i_frame_size) / i_count / 125; else {