[SCM] libav/experimental: flv: Warn only once
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Aug 10 16:02:57 UTC 2014
The following commit has been merged in the experimental branch:
commit 5d983fdbca5570a1545a892583a372cfb3fffe92
Author: Luca Barbato <lu_zero at gentoo.org>
Date: Wed Apr 23 21:19:27 2014 +0200
flv: Warn only once
No point in sending the message multiple time.
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");
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list