From b2661d006f5b972e8599903b4909a8633ea5d5b3 Mon Sep 17 00:00:00 2001 From: eddyg Date: Mon, 4 May 2009 04:56:19 +0000 Subject: Soft Subs Part 2: Auto-detect CC during scan, add CC to subtitle list in title, if selected then CC's are extracted, MP4 Muxer will dump the subs to the log at the end of encoding. TODO: Translate PTS for buf->start to HB format, add MP4 subtitle track and subs during muxing. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2375 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/scan.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libhb/scan.c') diff --git a/libhb/scan.c b/libhb/scan.c index 420904b61..6ff83a872 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -440,6 +440,7 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title ) int vcodec = title->video_codec? title->video_codec : WORK_DECMPEG2; hb_work_object_t *vid_decoder = hb_get_work( vcodec ); vid_decoder->codec_param = title->video_codec_param; + vid_decoder->title = title; vid_decoder->init( vid_decoder, NULL ); hb_buffer_t * vid_buf = NULL; int vidskip = 0; -- cgit v1.2.3