[FFmpeg-cvslog] avformat/flvdec: discard inconsistent timestamps
Michael Niedermayer
git at videolan.org
Wed Mar 12 01:58:05 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Mar 12 01:50:41 2014 +0100| [dbc3e1109cddd7ab653dce0f7758bad17b94803d] | committer: Michael Niedermayer
avformat/flvdec: discard inconsistent timestamps
Fixes Ticket3425
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dbc3e1109cddd7ab653dce0f7758bad17b94803d
---
libavformat/flvdec.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index b11e335..f8c08bc 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -938,6 +938,10 @@ retry_duration:
flv->wrong_dts = 1;
av_log(s, AV_LOG_WARNING,
"negative cts, previous timestamps might be wrong\n");
+ } else if (FFABS(dts - pts) > 1000*60*15) {
+ av_log(s, AV_LOG_WARNING,
+ "invalid timestamps %"PRId64" %"PRId64"\n", dts, pts);
+ dts = pts = AV_NOPTS_VALUE;
}
if (flv->wrong_dts)
dts = AV_NOPTS_VALUE;
More information about the ffmpeg-cvslog
mailing list