flv: Do not mangle dts values for negative cts
authorLuca Barbato <lu_zero@gentoo.org>
Wed, 23 Apr 2014 19:20:17 +0000 (21:20 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 23 Apr 2014 19:20:17 +0000 (21:20 +0200)
Some applications really mean to send negative pts.

libavformat/flvdec.c

index cdb7c36..3772cd9 100644 (file)
@@ -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) {