]> git.sesse.net Git - ffmpeg/commitdiff
avformat/segment: always use interleaved writes for formats with custom interleaving
authorMarton Balint <cus@passwd.hu>
Tue, 31 Mar 2020 23:03:29 +0000 (01:03 +0200)
committerMarton Balint <cus@passwd.hu>
Wed, 8 Apr 2020 19:57:57 +0000 (21:57 +0200)
Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/segment.c

index 2a838c7da7af0fcdea6f1a6d58cdf6d2b61197dc..60b72b7d15edb2afb69d03eac615b7cbcb1ad54f 100644 (file)
@@ -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) {