[vlc-commits] demux: mp4: don't disable all referenced tracks (fix #3392)

Francois Cartegnie git at videolan.org
Sun Mar 16 11:40:13 CET 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Mar 16 11:11:48 2014 +0100| [ca88cfb9d67f380d6bf69a6b2e23456a3d90fede] | committer: Francois Cartegnie

demux: mp4: don't disable all referenced tracks (fix #3392)

Referenced chapter tracks might not contain chapter only data.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ca88cfb9d67f380d6bf69a6b2e23456a3d90fede
---

 modules/demux/mp4/mp4.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index f083fbe..7ac64e2 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2659,7 +2659,8 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
 
         for( i = 0; i < p_chap->i_entry_count; i++ )
         {
-            if( p_track->i_track_ID == p_chap->i_track_ID[i] )
+            if( p_track->i_track_ID == p_chap->i_track_ID[i] &&
+                p_track->fmt.i_cat == UNKNOWN_ES )
             {
                 p_track->b_chapter = true;
                 p_track->b_enable = false;



More information about the vlc-commits mailing list