summaryrefslogtreecommitdiffstats
path: root/libhb/muxcommon.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-05-06 22:41:17 +0000
committerjstebbins <[email protected]>2009-05-06 22:41:17 +0000
commit608dfc094e62c0734cc22ffdcda73c3f60391924 (patch)
treeb6e15263b8db0fa9046492c48d9de8733e41364c /libhb/muxcommon.c
parent4123d300dcd3105fc6ce5ef920205fcd83a6312b (diff)
subtitle muxing:
initialize mux_data for passthru subtitles in muxmp4 and muxmkv add non-continuous tracks for passthru subtitles in muxcommon log closed caption data that gets to the muxer git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2393 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/muxcommon.c')
-rw-r--r--libhb/muxcommon.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libhb/muxcommon.c b/libhb/muxcommon.c
index 813afc863..4d64b76f4 100644
--- a/libhb/muxcommon.c
+++ b/libhb/muxcommon.c
@@ -258,6 +258,14 @@ static void MuxerFunc( void * _mux )
add_mux_track( mux, audio->priv.fifo_out, audio->priv.mux_data, 1 );
}
+ for( i = 0; i < hb_list_count( title->list_subtitle ); i++ )
+ {
+ hb_subtitle_t *subtitle = hb_list_item( title->list_subtitle, i );
+
+ if (subtitle->dest != PASSTHRUSUB)
+ continue;
+ add_mux_track( mux, subtitle->fifo_out, subtitle->mux_data, 0 );
+ }
// The following 'while' is the main muxing loop.