]> git.videolan.org Git - x264.git/commitdiff
Force pic-struct for Blu-ray compat + fake-interlaced
authorJason Garrett-Glaser <jason@x264.com>
Fri, 15 Apr 2011 23:33:27 +0000 (16:33 -0700)
committerJason Garrett-Glaser <jason@x264.com>
Mon, 18 Apr 2011 08:05:01 +0000 (01:05 -0700)
encoder/encoder.c

index 56cbd27cffbbe008d7b944be78bed59e1164d05f..cc83b36e8188b00c567cfb14e1a2fb34854320ba 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 );