Commit 0d71e825 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '897d5c3a'

* commit '897d5c3a':
  lavf: Print a warning if failed to avoid negative timestamps when requested

Conflicts:
	libavformat/mux.c

See: ec6a5fc6Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 66e49ff3 897d5c3a
......@@ -579,8 +579,9 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
av_assert2(pkt->dts == AV_NOPTS_VALUE || pkt->dts >= 0 || s->max_interleave_delta > 0);
if (pkt->dts != AV_NOPTS_VALUE && pkt->dts < 0) {
av_log(s, AV_LOG_WARNING,
"Packets poorly interleaved, failed to avoid negative timestamp %s in stream %d\n"
"try -max_interleave_delta 0 as a possible workaround\n",
"Packets poorly interleaved, failed to avoid negative "
"timestamp %s in stream %d.\n"
"Try -max_interleave_delta 0 as a possible workaround.\n",
av_ts2str(pkt->dts),
pkt->stream_index
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment