Commit 9d19d7c3 authored by Michael Niedermayer's avatar Michael Niedermayer

segment: reverse pass avoid_negative_ts from the muxer

This fixes failures with formats not supporting negative TS
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2c34367b
......@@ -416,6 +416,9 @@ static int seg_write_header(AVFormatContext *s)
goto fail;
}
if (oc->avoid_negative_ts > 0 && s->avoid_negative_ts < 0)
s->avoid_negative_ts = 1;
if (!seg->write_header_trailer) {
close_null_ctx(oc->pb);
if ((ret = avio_open2(&oc->pb, oc->filename, AVIO_FLAG_WRITE,
......
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