[libav-commits] flv: Do not mangle dts values for negative cts

Luca Barbato git at libav.org
Thu Apr 24 17:49:26 CEST 2014


Module: libav
Branch: master
Commit: 152b797cd687e96a582a1cb908dddf3d330d7637

Author:    Luca Barbato <lu_zero at gentoo.org>
Committer: Luca Barbato <lu_zero at gentoo.org>
Date:      Wed Apr 23 21:20:17 2014 +0200

flv: Do not mangle dts values for negative cts

Some applications really mean to send negative pts.

---

 libavformat/flvdec.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index cdb7c36..3772cd9 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -901,8 +901,6 @@ skip:
                 av_log(s, AV_LOG_WARNING,
                        "Negative cts, previous timestamps might be wrong.\n");
             }
-            if (flv->wrong_dts)
-                dts = AV_NOPTS_VALUE;
         }
         if (type == 0) {
             if (st->codec->extradata) {



More information about the libav-commits mailing list