[vlc-commits] demux: mp4: validate smooth tracks only after init

Francois Cartegnie git at videolan.org
Thu Jun 11 16:52:20 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Jun 11 16:47:44 2015 +0200| [895d419f056bd6f9bcd1e1cc1d25d32c3db9e13b] | committer: Francois Cartegnie

demux: mp4: validate smooth tracks only after init

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

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

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 2c1a72b..180a5e1 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -3454,7 +3454,7 @@ static int MP4_SmoothTrackCreate( demux_t *p_demux, mp4_track_t *p_track, MP4_Bo
     if( !p_data )
         return VLC_EGENERIC;
 
-    p_track->b_ok       = true;
+    p_track->b_ok       = false;
     p_track->b_selected = false;
     p_track->i_sample_count = UINT32_MAX;
 
@@ -3533,6 +3533,8 @@ static int MP4_SmoothTrackCreate( demux_t *p_demux, mp4_track_t *p_track, MP4_Bo
             break;
     }
 
+    p_track->b_ok = true;
+
     return VLC_SUCCESS;
 }
 



More information about the vlc-commits mailing list