]> granicus.if.org Git - libx264/commitdiff
Force keyint-min 1 with Blu-ray
authorFiona Glaser <fiona@x264.com>
Sat, 21 Jan 2012 20:54:40 +0000 (12:54 -0800)
committerFiona Glaser <fiona@x264.com>
Sat, 4 Feb 2012 15:16:25 +0000 (07:16 -0800)
Fixes an issue with referencing across I-frames that's prohibited in Blu-ray for some godforsaken reason.

encoder/encoder.c

index 5ae3f0a676c78144756ffe75b1d06e6ec4e3caf4..aa30142b32bd6b18e19023c7d3b321489c878875 100644 (file)
@@ -643,6 +643,8 @@ static int x264_validate_parameters( x264_t *h, int b_open )
         h->param.b_intra_refresh = 0;
         h->param.i_frame_reference = X264_MIN( h->param.i_frame_reference, 6 );
         h->param.i_dpb_size = X264_MIN( h->param.i_dpb_size, 6 );
+        /* Don't use I-frames, because Blu-ray treats them the same as IDR. */
+        h->param.i_keyint_min = 1;
         /* 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 )