From: Jason Garrett-Glaser Date: Fri, 15 Apr 2011 23:33:27 +0000 (-0700) Subject: Force pic-struct for Blu-ray compat + fake-interlaced X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=b250180d710b11c8f457a915ce4f66813ae55a25;p=x264.git Force pic-struct for Blu-ray compat + fake-interlaced --- diff --git a/encoder/encoder.c b/encoder/encoder.c index 56cbd27c..cc83b36e 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -608,6 +608,8 @@ static int x264_validate_parameters( x264_t *h ) h->param.i_dpb_size = X264_MIN( h->param.i_dpb_size, 6 ); /* Due to the proliferation of broken players that don't handle dupes properly. */ h->param.analyse.i_weighted_pred = X264_MIN( h->param.analyse.i_weighted_pred, X264_WEIGHTP_SIMPLE ); + if( h->param.b_fake_interlaced ) + h->param.b_pic_struct = 1; } h->param.i_frame_reference = x264_clip3( h->param.i_frame_reference, 1, X264_REF_MAX );