[FFmpeg-cvslog] find_stream_info: update last_dts more often
Michael Niedermayer
git at videolan.org
Thu Aug 30 23:53:20 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 30 23:41:16 2012 +0200| [19d89549667acbb0b7892d9583d08597f66be838] | committer: Michael Niedermayer
find_stream_info: update last_dts more often
This improves dts validity checks and consequently fps detection of files with invalid dts
Fixes Ticket1681
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=19d89549667acbb0b7892d9583d08597f66be838
---
libavformat/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 301528d..4ce0a0c 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2721,7 +2721,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
if (st->info->duration_count > 3)
st->info->duration_gcd = av_gcd(st->info->duration_gcd, duration);
}
- if (last == AV_NOPTS_VALUE || st->info->duration_count <= 1)
+ if (pkt->dts != AV_NOPTS_VALUE)
st->info->last_dts = pkt->dts;
}
#endif
More information about the ffmpeg-cvslog
mailing list