[FFmpeg-cvslog] ffmpeg: limit non monotone workaround to audio & video streams

Michael Niedermayer git at videolan.org
Fri May 3 15:11:58 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May  3 14:53:18 2013 +0200| [ee3824f6f6968a3917ba7ed1906d00f6e2df258e] | committer: Michael Niedermayer

ffmpeg: limit non monotone workaround to audio & video streams

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 ffmpeg.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 86af9bb..b890580 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -611,6 +611,7 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
     }
 
     if (!(s->oformat->flags & AVFMT_NOTIMESTAMPS) &&
+        (avctx->codec_type == AVMEDIA_TYPE_AUDIO || avctx->codec_type == AVMEDIA_TYPE_VIDEO) &&
         ost->last_mux_dts != AV_NOPTS_VALUE &&
         pkt->dts < ost->last_mux_dts + !(s->oformat->flags & AVFMT_TS_NONSTRICT)) {
         av_log(NULL, AV_LOG_WARNING, "Non-monotonous DTS in output stream "



More information about the ffmpeg-cvslog mailing list