From e37a4907a51c16ebe16cbdffcd87a5d8fc3c342c Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Tue, 20 Apr 2010 09:17:18 +0000 Subject: [PATCH] Fix printing of bitrate when timestamps aren't available Doesn't affect x264cli, but was broken in some other apps in CFR mode. --- encoder/encoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.47.3