]> git.videolan.org Git - x264.git/commitdiff
Fix regression in b-adapt patch: encoder_open failed for multipass encodes without...
authorJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 15 Sep 2008 19:22:48 +0000 (12:22 -0700)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 15 Sep 2008 19:24:02 +0000 (12:24 -0700)
encoder/ratecontrol.c

index 0b99e9852970c6c86f5a95265eefbb32838dea32..3251f4f5fe33ee5668f57728c63376fc79a59d19 100644 (file)
@@ -400,7 +400,7 @@ int x264_ratecontrol_new( x264_t *h )
 
             if( ( p = strstr( opts, "b_adapt=" ) ) && sscanf( p, "b_adapt=%d", &i ) && i >= X264_B_ADAPT_NONE && i <= X264_B_ADAPT_TRELLIS )
                 h->param.i_bframe_adaptive = i;
-            else
+            else if( h->param.i_bframe )
             {
                 x264_log( h, X264_LOG_ERROR, "b_adapt method specified in stats file not valid\n" );
                 return -1;