Mercurial > libavformat.hg
changeset 6228:322e7096671d libavformat
Move AVStream->codec_info_nb_frames increment after try_decode_frame
author | bcoudurier |
---|---|
date | Sat, 03 Jul 2010 03:15:37 +0000 |
parents | 78ee17447ff3 |
children | 3b049f067bdd |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Sat Jul 03 03:07:33 2010 +0000 +++ b/utils.c Sat Jul 03 03:15:37 2010 +0000 @@ -2281,8 +2281,6 @@ } 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 @@ if (!has_codec_parameters(st->codec) || !has_decode_delay_been_guessed(st)) try_decode_frame(st, pkt); + st->codec_info_nb_frames++; count++; }