]> git.sesse.net Git - vlc/commitdiff
* mp4: fixed playback for files that have 0 byte samples.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 13 Jan 2004 01:44:49 +0000 (01:44 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 13 Jan 2004 01:44:49 +0000 (01:44 +0000)
modules/demux/mp4/mp4.c

index be2b371c78e8bcbd3a58c288946f32a783d86f4b..846fa156d2ac06324104b6c70bf34c3a1b782ae2 100644 (file)
@@ -2,7 +2,7 @@
  * mp4.c : MP4 file input module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: mp4.c,v 1.50 2004/01/09 04:37:43 jlj Exp $
+ * $Id: mp4.c,v 1.51 2004/01/13 01:44:49 fenrir Exp $
  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
  *
  * This program is free software; you can redistribute it and/or modify
@@ -432,7 +432,8 @@ static int Demux( input_thread_t *p_input )
         while( MP4_GetTrackPTS( &track ) < MP4_GetMoviePTS( p_sys ) )
         {
 
-            if( !b_play_audio && track.fmt.i_cat == AUDIO_ES )
+            if( ( !b_play_audio && track.fmt.i_cat == AUDIO_ES ) ||
+                MP4_TrackSampleSize( &track ) <= 0 )
             {
                 if( MP4_TrackNextSample( p_input, &track ) )
                 {