mirror of https://git.ffmpeg.org/ffmpeg.git
segment: reverse pass avoid_negative_ts from the muxer
This fixes failures with formats not supporting negative TS Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2c34367b4a
commit
9d19d7c335
|
@ -416,6 +416,9 @@ static int seg_write_header(AVFormatContext *s)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (oc->avoid_negative_ts > 0 && s->avoid_negative_ts < 0)
|
||||||
|
s->avoid_negative_ts = 1;
|
||||||
|
|
||||||
if (!seg->write_header_trailer) {
|
if (!seg->write_header_trailer) {
|
||||||
close_null_ctx(oc->pb);
|
close_null_ctx(oc->pb);
|
||||||
if ((ret = avio_open2(&oc->pb, oc->filename, AVIO_FLAG_WRITE,
|
if ((ret = avio_open2(&oc->pb, oc->filename, AVIO_FLAG_WRITE,
|
||||||
|
|
Loading…
Reference in New Issue