[vlc-commits] demux: mp4: don't create unknown es on bad handler

Francois Cartegnie git at videolan.org
Sat Jun 13 18:11:47 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Jun 13 13:18:01 2015 +0200| [b79c2d50353bfc269922020ea6efd515aa9d21aa] | committer: Francois Cartegnie

demux: mp4: don't create unknown es on bad handler

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

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

diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 89e60b1..18de00a 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2381,7 +2381,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
     {
     case VIDEO_ES:
         if ( !p_sample->data.p_sample_vide || p_sample->i_handler != ATOM_vide )
-            break;
+            return VLC_EGENERIC;
         SetupVideoES( p_demux, p_track, p_sample );
 
         /* Set frame rate */
@@ -2397,13 +2397,13 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
 
     case AUDIO_ES:
         if ( !p_sample->data.p_sample_soun || p_sample->i_handler != ATOM_soun )
-            break;
+            return VLC_EGENERIC;
         SetupAudioES( p_demux, p_track, p_sample );
         break;
 
     case SPU_ES:
         if ( !p_sample->data.p_sample_text || p_sample->i_handler != ATOM_text )
-            break;
+            return VLC_EGENERIC;
         SetupSpuES( p_demux, p_track, p_sample );
 
     default:



More information about the vlc-commits mailing list