[FFmpeg-devel] [PATCH] avformat/mux: 2 subtitle packets could have the same DTS
Michael Niedermayer
michaelni at gmx.at
Fri May 9 16:39:31 CEST 2014
Fixes Ticket3514
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
libavformat/mux.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/mux.c b/libavformat/mux.c
index cbe17f5..4d14498 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -477,6 +477,7 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
if (st->cur_dts && st->cur_dts != AV_NOPTS_VALUE &&
((!(s->oformat->flags & AVFMT_TS_NONSTRICT) &&
+ st->codec->codec_type != AVMEDIA_TYPE_SUBTITLE &&
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.7.9.5
More information about the ffmpeg-devel
mailing list