summaryrefslogtreecommitdiffstats
path: root/libhb/demuxmpeg.c
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2007-07-24 16:33:19 +0000
committerjbrjake <[email protected]>2007-07-24 16:33:19 +0000
commit7d4ddd6585fcd7d89541a914d6156018e7a55d46 (patch)
tree4bb7e348fcdd300a303204bbfb03c8d7dbca8f00 /libhb/demuxmpeg.c
parent2bc2b7e747aa0dadbcf71d9b108f54f2da975cea (diff)
Makes sure chapter markers get applied to the right track, so ReaderFunc() sees them. Thanks for this patch too, ares01590!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@727 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/demuxmpeg.c')
-rw-r--r--libhb/demuxmpeg.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libhb/demuxmpeg.c b/libhb/demuxmpeg.c
index 5aefc3743..93b3709c3 100644
--- a/libhb/demuxmpeg.c
+++ b/libhb/demuxmpeg.c
@@ -112,8 +112,11 @@ int hb_demux_ps( hb_buffer_t * buf_ps, hb_list_t * list_es )
buf_es->id = id;
buf_es->start = pts;
- buf_es->new_chap = buf_ps->new_chap; // Consume a chapter break, and apply it to the ES.
- buf_ps->new_chap = 0;
+ if (id == 0xE0) {
+ // Consume a chapter break, and apply it to the ES.
+ buf_es->new_chap = buf_ps->new_chap;
+ buf_ps->new_chap = 0;
+ }
memcpy( buf_es->data, d + pos, pes_packet_end - pos );
hb_list_add( list_es, buf_es );