summaryrefslogtreecommitdiffstats
path: root/libhb/rendersub.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-04-09 23:34:31 +0000
committerjstebbins <[email protected]>2014-04-09 23:34:31 +0000
commit908f352cabcbfc2fe01fd508c4067baa3a3c2768 (patch)
tree99a171569b7c57e39c444abf9aee4af3f71d1971 /libhb/rendersub.c
parent9da171377eac94147a2c349839fc3dad90c872c3 (diff)
rendersub: fix rendering SRT markup in CC subs
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6160 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/rendersub.c')
-rw-r--r--libhb/rendersub.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/rendersub.c b/libhb/rendersub.c
index 680b5f9ed..eaec996c6 100644
--- a/libhb/rendersub.c
+++ b/libhb/rendersub.c
@@ -653,6 +653,7 @@ static int textsub_work(hb_filter_object_t * filter,
{
switch (pv->type)
{
+ case CC608SUB:
case SRTSUB:
case UTF8SUB:
case TX3GSUB:
@@ -1043,6 +1044,7 @@ static void srt_to_ssa(hb_buffer_t *sub_in)
// Exchange data between input sub and new ssa_sub
// After this, sub_in contains ssa data
hb_buffer_swap_copy(sub_in, sub);
+ ssa = (char*)sub_in->data;
pos = 0;
ii = 0;
while (srt[ii] != '\0')