From: Jason Garrett-Glaser Date: Sat, 5 Feb 2011 23:02:34 +0000 (-0800) Subject: Allow WEIGHTP_FAKE in interlaced mode X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=16868ec528909a80766a9a737e6ce3649521d9c3;p=x264.git Allow WEIGHTP_FAKE in interlaced mode It seems to work fine as-is even though real weightp doesn't support interlacing yet. --- diff --git a/encoder/encoder.c b/encoder/encoder.c index 3ff5897f..782d34ff 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -774,7 +774,7 @@ static int x264_validate_parameters( x264_t *h ) } h->param.analyse.i_weighted_pred = x264_clip3( h->param.analyse.i_weighted_pred, X264_WEIGHTP_NONE, X264_WEIGHTP_SMART ); - if( !h->param.analyse.i_weighted_pred && h->param.rc.b_mb_tree && h->param.analyse.b_psy && !h->param.b_interlaced ) + if( !h->param.analyse.i_weighted_pred && h->param.rc.b_mb_tree && h->param.analyse.b_psy ) h->param.analyse.i_weighted_pred = X264_WEIGHTP_FAKE; if( h->i_thread_frames > 1 )