]> granicus.if.org Git - libx264/commitdiff
Force pic-struct for Blu-ray compat + fake-interlaced
authorFiona Glaser <fiona@x264.com>
Fri, 15 Apr 2011 23:33:27 +0000 (16:33 -0700)
committerFiona Glaser <fiona@x264.com>
Mon, 18 Apr 2011 08:05:01 +0000 (01:05 -0700)
encoder/encoder.c

index d1df8734225cf8abd11b74a7bfa508e685d42269..5d34c309fefde36ca7d88387b77ab8c4d221bb25 100644 (file)
@@ -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 );