summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-05-20 22:35:38 +0000
committerRodeo <[email protected]>2012-05-20 22:35:38 +0000
commitfe91119c41ca4a9598117a4b6c9e13821c9bff3e (patch)
tree8c15a81121bd349917334a10b514b87e02b12f94
parent5e65c94c9f4785d05789e7b11056e9063d0d852f (diff)
Fix crash in MKV muxer with SRT subtitle sources (introduced in revision 4605).
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4692 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/muxmkv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/muxmkv.c b/libhb/muxmkv.c
index b1927ff80..7e6884d8a 100644
--- a/libhb/muxmkv.c
+++ b/libhb/muxmkv.c
@@ -343,6 +343,8 @@ static int MKVInit( hb_mux_object_t * m )
track->codecPrivateSize = len + 1;
break;
case PGSSUB:
+ track->codecPrivate = NULL;
+ track->codecPrivateSize = 0;
track->codecID = "S_HDMV/PGS";
break;
case SSASUB:
@@ -355,6 +357,9 @@ static int MKVInit( hb_mux_object_t * m )
case CC708SUB:
case UTF8SUB:
case TX3GSUB:
+ case SRTSUB:
+ track->codecPrivate = NULL;
+ track->codecPrivateSize = 0;
track->codecID = MK_SUBTITLE_UTF8;
break;
default: