[FFmpeg-cvslog] r20456 - trunk/libavformat/mov.c

bcoudurier subversion
Thu Nov 5 08:11:54 CET 2009


Author: bcoudurier
Date: Thu Nov  5 08:11:54 2009
New Revision: 20456

Log:
warn if stream timescale is not set and set it to 1 to avoid FPE

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	Thu Nov  5 03:04:21 2009	(r20455)
+++ trunk/libavformat/mov.c	Thu Nov  5 08:11:54 2009	(r20456)
@@ -1572,8 +1572,12 @@ static int mov_read_trak(MOVContext *c, 
         return 0;
     }
 
-    if (!sc->time_scale)
+    if (!sc->time_scale) {
+        av_log(c->fc, AV_LOG_WARNING, "stream %d, timescale not set\n", st->index);
         sc->time_scale = c->time_scale;
+        if (!sc->time_scale)
+            sc->time_scale = 1;
+    }
 
     av_set_pts_info(st, 64, 1, sc->time_scale);
 



More information about the ffmpeg-cvslog mailing list