[vlc-devel] commit: Fixed mp4 apple chapter loading (close #1719) (Laurent Aimar )
git version control
git at videolan.org
Sat Aug 2 16:20:17 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Aug 2 16:15:36 2008 +0200| [70ecb609101f78950ae1ce97cb7077534cb11cb7] | committer: Laurent Aimar
Fixed mp4 apple chapter loading (close #1719)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70ecb609101f78950ae1ce97cb7077534cb11cb7
---
modules/demux/mp4/mp4.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 7e47bcd..c1505fa 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -1077,7 +1077,7 @@ static void LoadChapter( demux_t *p_demux )
}
if( j < p_sys->i_tracks )
{
- LoadChapterApple( p_demux, &p_sys->track[i] );
+ LoadChapterApple( p_demux, &p_sys->track[j] );
break;
}
}
@@ -2156,7 +2156,7 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
p_track->i_sample = 0;
/* Mark chapter only track */
- if( !p_track->b_enable && p_sys->p_tref_chap )
+ if( p_sys->p_tref_chap )
{
MP4_Box_data_tref_generic_t *p_chap = p_sys->p_tref_chap->data.p_tref_generic;
unsigned int i;
@@ -2166,6 +2166,7 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
if( p_track->i_track_ID == p_chap->i_track_ID[i] )
{
p_track->b_chapter = true;
+ p_track->b_enable = false;
break;
}
}
More information about the vlc-devel
mailing list