From fa01979f7260543c845d0823d4a7c0774bcf5a16 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Sat, 29 Oct 2005 04:05:57 +0000 Subject: [PATCH] cosmetics: fix an erroneous warning from r340. git-svn-id: svn://svn.videolan.org/x264/trunk@346 df754926-b1dd-0310-bc7b-ec298dee348c --- encoder/ratecontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c index a349217d..71a9cbc5 100644 --- a/encoder/ratecontrol.c +++ b/encoder/ratecontrol.c @@ -279,7 +279,7 @@ int x264_ratecontrol_new( x264_t *h ) } rc->num_entries = i; - if( h->param.i_frame_total < rc->num_entries ) + if( h->param.i_frame_total < rc->num_entries && h->param.i_frame_total > 0 ) { x264_log( h, X264_LOG_WARNING, "2nd pass has fewer frames than 1st pass (%d vs %d)\n", h->param.i_frame_total, rc->num_entries ); -- 2.47.3