[FFmpeg-cvslog] flv: Do not mangle dts values for negative cts

Luca Barbato git at videolan.org
Thu Apr 24 22:05:45 CEST 2014


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Wed Apr 23 21:20:17 2014 +0200| [152b797cd687e96a582a1cb908dddf3d330d7637] | committer: Luca Barbato

flv: Do not mangle dts values for negative cts

Some applications really mean to send negative pts.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=152b797cd687e96a582a1cb908dddf3d330d7637
---

 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 ffmpeg-cvslog mailing list