[FFmpeg-cvslog] r24017 - trunk/libavformat/utils.c

bcoudurier subversion
Sat Jul 3 05:15:37 CEST 2010


Author: bcoudurier
Date: Sat Jul  3 05:15:37 2010
New Revision: 24017

Log:
Move AVStream->codec_info_nb_frames increment after try_decode_frame

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Sat Jul  3 05:12:29 2010	(r24016)
+++ trunk/libavformat/utils.c	Sat Jul  3 05:15:37 2010	(r24017)
@@ -2281,8 +2281,6 @@ int av_find_stream_info(AVFormatContext 
             }
             codec_info_duration[st->index] += pkt->duration;
         }
-            st->codec_info_nb_frames++;
-
         {
             int index= pkt->stream_index;
             int64_t last= last_dts[index];
@@ -2326,6 +2324,7 @@ int av_find_stream_info(AVFormatContext 
         if (!has_codec_parameters(st->codec) || !has_decode_delay_been_guessed(st))
             try_decode_frame(st, pkt);
 
+        st->codec_info_nb_frames++;
         count++;
     }
 



More information about the ffmpeg-cvslog mailing list