From: Loren Merritt Date: Sat, 29 Oct 2005 04:05:57 +0000 (+0000) Subject: cosmetics: fix an erroneous warning from r340. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=fa01979f7260543c845d0823d4a7c0774bcf5a16;p=x264.git cosmetics: fix an erroneous warning from r340. git-svn-id: svn://svn.videolan.org/x264/trunk@346 df754926-b1dd-0310-bc7b-ec298dee348c --- 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 );