From 5d983fdbca5570a1545a892583a372cfb3fffe92 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Wed, 23 Apr 2014 21:19:27 +0200 Subject: flv: Warn only once No point in sending the message multiple time. --- libavformat/flvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 5a2f3485a5..cdb7c36776 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"); -- cgit v1.2.3