]> granicus.if.org Git - handbrake/commitdiff
Set MinCache to 1 if we're using x264 and b-frames.
authorsaintdev <no-reply@handbrake.fr>
Mon, 16 Jul 2007 23:17:04 +0000 (23:17 +0000)
committersaintdev <no-reply@handbrake.fr>
Mon, 16 Jul 2007 23:17:04 +0000 (23:17 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@704 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/muxmkv.c

index 9bb4ece58b78437fbbf1896c4a5f2041dd7fd0bb..41c61b57400cfe4c44623cb8e029896b115d880c 100644 (file)
@@ -85,6 +85,8 @@ static int MKVInit( hb_mux_object_t * m )
             memcpy( avcC+11+job->config.h264.sps_length, job->config.h264.pps, job->config.h264.pps_length );
             track->codecPrivate = avcC;
             track->codecPrivateSize = avcC_len;
+            if (job->areBframes)
+                track->minCache = 1;
             break;
         case HB_VCODEC_XVID:
         case HB_VCODEC_FFMPEG: