diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-07-03 03:15:37 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-07-03 03:15:37 +0000 |
commit | 9d3fdf2031403301f25d7f5b4f5c323ba95139ee (patch) | |
tree | cdf96613a5c4a5bd322ba489e41ba650916cd569 /libavformat/utils.c | |
parent | b5049814838c63915e42fb4789d88ccc11446e2f (diff) | |
download | ffmpeg-9d3fdf2031403301f25d7f5b4f5c323ba95139ee.tar.gz |
Move AVStream->codec_info_nb_frames increment after try_decode_frame
Originally committed as revision 24017 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 050429118d..6fa4dff419 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2281,8 +2281,6 @@ int av_find_stream_info(AVFormatContext *ic) } 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 *ic) if (!has_codec_parameters(st->codec) || !has_decode_delay_been_guessed(st)) try_decode_frame(st, pkt); + st->codec_info_nb_frames++; count++; } |