[Ffmpeg-cvslog] r7384 - trunk/libavformat/utils.c

michael subversion
Fri Dec 29 22:41:06 CET 2006


Author: michael
Date: Fri Dec 29 22:41:06 2006
New Revision: 7384

Modified:
   trunk/libavformat/utils.c

Log:
ignore duration of the first 2 frames in the max-time break check
fixes framerate detection for framerate_misdetected.wmv


Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	(original)
+++ trunk/libavformat/utils.c	Fri Dec 29 22:41:06 2006
@@ -1880,7 +1880,8 @@
         read_size += pkt->size;
 
         st = ic->streams[pkt->stream_index];
-        st->codec_info_duration += pkt->duration;
+        if(st->codec_info_nb_frames>1) //FIXME move codec_info_nb_frames and codec_info_duration from AVStream into this func
+            st->codec_info_duration += pkt->duration;
         if (pkt->duration != 0)
             st->codec_info_nb_frames++;
 




More information about the ffmpeg-cvslog mailing list