[Ffmpeg-cvslog] r8545 - trunk/libavformat/mov.c

bcoudurier subversion
Thu Mar 29 12:42:22 CEST 2007


Author: bcoudurier
Date: Thu Mar 29 12:42:22 2007
New Revision: 8545

Modified:
   trunk/libavformat/mov.c

Log:
unset sample count to disable track when is broken

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Thu Mar 29 12:42:22 2007
@@ -1509,6 +1509,7 @@ static int mov_read_header(AVFormatConte
         if(!sc->stts_count || !sc->chunk_count || !sc->sample_to_chunk_sz ||
            (!sc->sample_size && !sc->sample_count)){
             av_log(s, AV_LOG_ERROR, "missing mandatory atoms, broken header\n");
+            sc->sample_count = 0; //ignore track
             continue;
         }
         if(!sc->time_rate)




More information about the ffmpeg-cvslog mailing list