[FFmpeg-devel] [PATCH] avformat/mux: warning only on streams with pts < dts
ffmpeg at tmm1.net
ffmpeg at tmm1.net
Sun May 11 05:46:47 CEST 2014
From: Aman Gupta <ffmpeg at tmm1.net>
Remove the "av_interleaved_write_frame(): Invalid argument" error when
remuxing a stream with non-monotonous pts timestamps.
Fixes ticket #3621
Signed-off-by: Aman Gupta <ffmpeg at tmm1.net>
---
libavformat/mux.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/libavformat/mux.c b/libavformat/mux.c
index cbe17f5..779f04c 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -484,9 +484,8 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
return AVERROR(EINVAL);
}
if (pkt->dts != AV_NOPTS_VALUE && pkt->pts != AV_NOPTS_VALUE && pkt->pts < pkt->dts) {
- av_log(s, AV_LOG_ERROR, "pts (%s) < dts (%s) in stream %d\n",
+ av_log(s, AV_LOG_WARNING, "pts (%s) < dts (%s) in stream %d\n",
av_ts2str(pkt->pts), av_ts2str(pkt->dts), st->index);
- return AVERROR(EINVAL);
}
av_dlog(s, "av_write_frame: pts2:%s dts2:%s\n",
--
1.9.1
More information about the ffmpeg-devel
mailing list