summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-04-01 01:03:29 +0200
committerMarton Balint <cus@passwd.hu>2020-04-08 21:57:57 +0200
commitdf4e008995a454576c7197b2969c552e96580da8 (patch)
tree4cdd69eaf7f0667d24d236eb19410b8c73519d55 /libavformat
parent99ebb033d21df58b359b496662b066bc48ae6662 (diff)
avformat/segment: always use interleaved writes for formats with custom interleaving
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/segment.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 2a838c7da7..60b72b7d15 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -971,7 +971,8 @@ calc_times:
av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, &st->time_base),
av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, &st->time_base));
- ret = ff_write_chained(seg->avf, pkt->stream_index, pkt, s, seg->initial_offset || seg->reset_timestamps);
+ ret = ff_write_chained(seg->avf, pkt->stream_index, pkt, s,
+ seg->initial_offset || seg->reset_timestamps || seg->avf->oformat->interleave_packet);
fail:
if (pkt->stream_index == seg->reference_stream_index) {