From ee3824f6f6968a3917ba7ed1906d00f6e2df258e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 3 May 2013 14:53:18 +0200 Subject: [PATCH] ffmpeg: limit non monotone workaround to audio & video streams Signed-off-by: Michael Niedermayer --- ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeg.c b/ffmpeg.c index 86af9bbc1f..b890580feb 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 "