mirror of https://git.ffmpeg.org/ffmpeg.git
flv: Warn only once
No point in sending the message multiple time.
This commit is contained in:
parent
374fdc8c07
commit
5d983fdbca
|
@ -896,7 +896,7 @@ skip:
|
||||||
// sign extension
|
// sign extension
|
||||||
int32_t cts = (avio_rb24(s->pb) + 0xff800000) ^ 0xff800000;
|
int32_t cts = (avio_rb24(s->pb) + 0xff800000) ^ 0xff800000;
|
||||||
pts = dts + cts;
|
pts = dts + cts;
|
||||||
if (cts < 0) { // dts are wrong
|
if (cts < 0 && !flv->wrong_dts) { // dts might be wrong
|
||||||
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");
|
||||||
|
|
Loading…
Reference in New Issue