summaryrefslogtreecommitdiffstats
path: root/libhb/dvdnav.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-05-17 11:51:25 -0600
committerJohn Stebbins <[email protected]>2016-05-17 11:51:25 -0600
commitde858d1600ac61258dc895b2fc8756b7c5d1d3a8 (patch)
treecdbd82e3d9ee83cfb9a31ebbb034852aa36fb2cb /libhb/dvdnav.c
parent9dcce9df07f4db1fa61f25ffeb106aa00bd64190 (diff)
libhb: send initial chapter through pipeline
Eliminate the need for everyone to assume that the first chapter starts at the first frame.
Diffstat (limited to 'libhb/dvdnav.c')
-rw-r--r--libhb/dvdnav.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/libhb/dvdnav.c b/libhb/dvdnav.c
index e2a472cb5..6075a8ee6 100644
--- a/libhb/dvdnav.c
+++ b/libhb/dvdnav.c
@@ -1646,11 +1646,7 @@ static hb_buffer_t * hb_dvdnav_read( hb_dvd_t * e )
case DVDNAV_BLOCK_OK:
// We have received a regular block of the currently playing
// MPEG stream.
-
- // The muxers expect to only get chapter 2 and above
- // They write chapter 1 when chapter 2 is detected.
- if (chapter > 1)
- b->s.new_chap = chapter;
+ b->s.new_chap = chapter;
chapter = 0;
error_count = 0;
return b;
@@ -1791,12 +1787,7 @@ static hb_buffer_t * hb_dvdnav_read( hb_dvd_t * e )
// mpegdemux expects to get these. I don't think it does
// anything useful with them however.
-
- // The muxers expect to only get chapter 2 and above
- // They write chapter 1 when chapter 2 is detected.
- if (chapter > 1)
- b->s.new_chap = chapter;
- chapter = 0;
+ b->s.new_chap = chapter;
return b;
break;