Commit 1a08335a authored by Fiona Glaser's avatar Fiona Glaser

Fix rc-lookahead in encoding options SEI in 2-pass with VBV

parent 047ae529
......@@ -674,7 +674,7 @@ int x264_ratecontrol_new( x264_t *h )
return -1;
}
if( h->param.rc.b_mb_tree && ( p = strstr( opts, "rc_lookahead=" ) ) && sscanf( p, "rc_lookahead=%d", &i ) )
if( (h->param.rc.b_mb_tree || h->param.rc.i_vbv_buffer_size) && ( p = strstr( opts, "rc_lookahead=" ) ) && sscanf( p, "rc_lookahead=%d", &i ) )
h->param.rc.i_lookahead = i;
}
......
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