[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mov.c,1.138,1.139

Baptiste Coudurier CVS bcoudurier
Mon Mar 27 18:19:54 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv26622/libavformat

Modified Files:
	mov.c 
Log Message:
ignore wrong negative cts values created by quicktime

Index: mov.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mov.c,v
retrieving revision 1.138
retrieving revision 1.139
diff -u -d -r1.138 -r1.139
--- mov.c	26 Mar 2006 17:05:28 -0000	1.138
+++ mov.c	27 Mar 2006 16:19:51 -0000	1.139
@@ -1339,6 +1339,12 @@
         int count    =get_be32(pb);
         int duration =get_be32(pb);
 
+        if (duration < 0) {
+            av_log(c->fc, AV_LOG_ERROR, "negative ctts, ignoring\n");
+            sc->ctts_count = 0;
+            url_fskip(pb, 8 * (entries - i - 1));
+            break;
+        }
         sc->ctts_data[i].count   = count;
         sc->ctts_data[i].duration= duration;
 





More information about the ffmpeg-cvslog mailing list