diff options
author | jstebbins <[email protected]> | 2011-03-29 22:43:07 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-03-29 22:43:07 +0000 |
commit | 1e1036dce8643fbc707aef29772f13b5deaab7a8 (patch) | |
tree | 55bb26c53513c52f32e25f3e3290aa0e534bb064 | |
parent | db2b25f9d19354853a211dcb600f1931aa21980e (diff) |
Fix chapter passthru problems with some files.
If the video stream is not the first track in the file, chapters were lost.
During scan, we identify which track is video and stash this in title.
While reading, when a chapter is found we want to tag the next video buffer.
But the video track id stored in the title was not being applied when
opening the file for reading, so the chapter mark always went on track id 0.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3889 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/stream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/stream.c b/libhb/stream.c index 8a5e5a473..64fa6cba4 100644 --- a/libhb/stream.c +++ b/libhb/stream.c @@ -2947,6 +2947,7 @@ static int ffmpeg_open( hb_stream_t *stream, hb_title_t *title ) // we're opening for read. scan passed out codec params that // indexed its stream so we need to remap them so they point // to this stream. + stream->ffmpeg_video_id = title->video_id; ffmpeg_remap_stream( stream, title ); av_log_set_level( AV_LOG_ERROR ); } |