diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-04-23 21:19:27 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-04-23 21:19:27 +0200 |
commit | 5d983fdbca5570a1545a892583a372cfb3fffe92 (patch) | |
tree | 6298a05cd612309c64890aa8c11c3c05a4455f5b | |
parent | 374fdc8c071dcd96422378b0a1a0d453336d8a01 (diff) | |
download | ffmpeg-streaming-5d983fdbca5570a1545a892583a372cfb3fffe92.zip ffmpeg-streaming-5d983fdbca5570a1545a892583a372cfb3fffe92.tar.gz |
flv: Warn only once
No point in sending the message multiple time.
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 5a2f348..cdb7c36 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -896,7 +896,7 @@ skip: // sign extension int32_t cts = (avio_rb24(s->pb) + 0xff800000) ^ 0xff800000; pts = dts + cts; - if (cts < 0) { // dts are wrong + if (cts < 0 && !flv->wrong_dts) { // dts might be wrong flv->wrong_dts = 1; av_log(s, AV_LOG_WARNING, "Negative cts, previous timestamps might be wrong.\n"); |