summaryrefslogtreecommitdiffstats
path: root/libhb/stream.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-03-29 22:43:07 +0000
committerjstebbins <[email protected]>2011-03-29 22:43:07 +0000
commit1e1036dce8643fbc707aef29772f13b5deaab7a8 (patch)
tree55bb26c53513c52f32e25f3e3290aa0e534bb064 /libhb/stream.c
parentdb2b25f9d19354853a211dcb600f1931aa21980e (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
Diffstat (limited to 'libhb/stream.c')
-rw-r--r--libhb/stream.c1
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 );
}