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

bcoudurier subversion
Wed Feb 13 11:58:16 CET 2008


Author: bcoudurier
Date: Wed Feb 13 11:58:16 2008
New Revision: 11923

Log:
warn use if edit list is not starting at 0, a/v desync might occur

Modified:
   trunk/libavformat/mov.c

Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c	(original)
+++ trunk/libavformat/mov.c	Wed Feb 13 11:58:16 2008
@@ -1230,9 +1230,13 @@ static int mov_read_elst(MOVContext *c, 
     edit_count= sc->edit_count = get_be32(pb);     /* entries */
 
     for(i=0; i<edit_count; i++){
+        int time;
         get_be32(pb); /* Track duration */
-        get_be32(pb); /* Media time */
+        time = get_be32(pb); /* Media time */
         get_be32(pb); /* Media rate */
+        if (time != 0)
+            av_log(c->fc, AV_LOG_WARNING, "edit list not starting at 0, "
+                   "a/v desync might occur, patch welcome\n");
     }
     dprintf(c->fc, "track[%i].edit_count = %i\n", c->fc->nb_streams-1, sc->edit_count);
     return 0;




More information about the ffmpeg-cvslog mailing list