Commit fa01979f authored by Loren Merritt's avatar Loren Merritt
Browse files

cosmetics: fix an erroneous warning from r340.



git-svn-id: svn://svn.videolan.org/x264/trunk@346 df754926-b1dd-0310-bc7b-ec298dee348c
parent 8d857c56
...@@ -279,7 +279,7 @@ int x264_ratecontrol_new( x264_t *h ) ...@@ -279,7 +279,7 @@ int x264_ratecontrol_new( x264_t *h )
} }
rc->num_entries = i; 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", 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 ); h->param.i_frame_total, rc->num_entries );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment