summaryrefslogtreecommitdiffstats
path: root/libhb/muxmkv.c
diff options
context:
space:
mode:
authorsaintdev <[email protected]>2007-07-16 23:17:04 +0000
committersaintdev <[email protected]>2007-07-16 23:17:04 +0000
commit279364eaf2fb2cbb53f5c1f76dca5c498592857f (patch)
tree09ad3c6b8e53973f9df6fbd3cfab713439468665 /libhb/muxmkv.c
parent7dfeabd6d83dc47c4d06bcf7645f9ed8a55cc0b9 (diff)
Set MinCache to 1 if we're using x264 and b-frames.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@704 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxmkv.c')
-rw-r--r--libhb/muxmkv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/muxmkv.c b/libhb/muxmkv.c
index 9bb4ece58..41c61b574 100644
--- a/libhb/muxmkv.c
+++ b/libhb/muxmkv.c
@@ -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: