Commit 7da5ff5c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '5d983fdb'

* commit '5d983fdb':
  flv: Warn only once
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 277ae5a7 5d983fdb
......@@ -934,10 +934,11 @@ retry_duration:
// sign extension
int32_t cts = (avio_rb24(s->pb) + 0xff800000) ^ 0xff800000;
pts = dts + cts;
if (cts < 0) { // dts are wrong
flv->wrong_dts = 1;
if (cts < 0) { // dts might be wrong
if (!flv->wrong_dts)
av_log(s, AV_LOG_WARNING,
"Negative cts, previous timestamps might be wrong.\n");
flv->wrong_dts = 1;
} else if (FFABS(dts - pts) > 1000*60*15) {
av_log(s, AV_LOG_WARNING,
"invalid timestamps %"PRId64" %"PRId64"\n", dts, pts);
......
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