On date Thursday 2016-02-25 13:41:02 +0100, Michael Niedermayer encoded: > On Thu, Feb 25, 2016 at 01:11:36PM +0100, Stefano Sabatini wrote: [...] > > So, while the check makes sense for audio and video, in the case of > > subtitles and data we are in the fuzzy area. In principle, I agree > > with the fact that data and subtitles should be treated in the same > > way, so I propose the following options: > > > > 1. disable the strict monotonicity check for both data and subtitles > > inconditionally > > yes, do with data what is done with subtitles already IIRC
See attached patch. [...] -- FFmpeg = Fiendish and Fierce Mastering Political Empowered Geisha
>From 0996189555f4a2402b396801da318b4ffcfb1a13 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini <stefa...@gmail.com> Date: Thu, 17 Dec 2015 20:51:42 +0100 Subject: [PATCH] lavf/mux: do not fail in case of non strictly monotonically increasing DTS values for data packets Consistent with what we already do with subtitles since ac08c5c0adcb7f2f9b5ea3eb473d1c2b9659aab2. --- libavformat/mux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mux.c b/libavformat/mux.c index 789c811..eb0b973 100644 --- a/libavformat/mux.c +++ b/libavformat/mux.c @@ -554,6 +554,7 @@ static int compute_muxer_pkt_fields(AVFormatContext *s, AVStream *st, AVPacket * if (st->cur_dts && st->cur_dts != AV_NOPTS_VALUE && ((!(s->oformat->flags & AVFMT_TS_NONSTRICT) && st->codec->codec_type != AVMEDIA_TYPE_SUBTITLE && + st->codec->codec_type != AVMEDIA_TYPE_DATA && st->cur_dts >= pkt->dts) || st->cur_dts > pkt->dts)) { av_log(s, AV_LOG_ERROR, "Application provided invalid, non monotonically increasing dts to muxer in stream %d: %s >= %s\n", -- 1.9.1
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel