[x264-devel] Force pic-struct for Blu-ray compat + fake-interlaced

Jason Garrett-Glaser git at videolan.org
Tue Apr 26 07:49:11 CEST 2011


x264 | branch: master | Jason Garrett-Glaser <jason at x264.com> | Fri Apr 15 16:33:27 2011 -0700| [b250180d710b11c8f457a915ce4f66813ae55a25] | committer: Jason Garrett-Glaser

Force pic-struct for Blu-ray compat + fake-interlaced

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=b250180d710b11c8f457a915ce4f66813ae55a25
---

 encoder/encoder.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/encoder/encoder.c b/encoder/encoder.c
index 56cbd27..cc83b36 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 );



More information about the x264-devel mailing list