Commit dbc3e110 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/flvdec: discard inconsistent timestamps

Fixes Ticket3425
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 77466876
...@@ -938,6 +938,10 @@ retry_duration: ...@@ -938,6 +938,10 @@ retry_duration:
flv->wrong_dts = 1; flv->wrong_dts = 1;
av_log(s, AV_LOG_WARNING, av_log(s, AV_LOG_WARNING,
"negative cts, previous timestamps might be wrong\n"); "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) if (flv->wrong_dts)
dts = AV_NOPTS_VALUE; dts = AV_NOPTS_VALUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment