Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-03-12 04:50:41 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-03-12 04:50:41 +0400
commitdbc3e1109cddd7ab653dce0f7758bad17b94803d (patch)
tree5fb7c1b8f313de2dd46ce68439d92154996020ac /libavformat/flvdec.c
parent774668763a4c1acccb605e8926759207c0c8ccef (diff)
avformat/flvdec: discard inconsistent timestamps
Fixes Ticket3425 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index b11e3352c1..f8c08bcd97 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;