Commit 1fada0053b for ffmpeg
commit 1fada0053b73466ce47cf68dfc461a870ee6c862
Author: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Date: Sun Nov 29 19:23:39 2026 -0800
avformat/segment,fifo: forward muxer strictness
Without forwarding, a strict parent leaves the child muxer in normal
mode. Copy the parent setting before applying explicit child options.
Assisted-by: Fairy
Signed-off-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
diff --git a/libavformat/fifo.c b/libavformat/fifo.c
index bb9c79e615..abe29d420b 100644
--- a/libavformat/fifo.c
+++ b/libavformat/fifo.c
@@ -529,6 +529,7 @@ static int fifo_mux_init(AVFormatContext *avf, const AVOutputFormat *oformat,
avf2->io_close2 = avf->io_close2;
avf2->io_open = avf->io_open;
avf2->flags = avf->flags;
+ avf2->strict_std_compliance = avf->strict_std_compliance;
for (i = 0; i < avf->nb_streams; ++i) {
AVStream *st = ff_stream_clone(avf2, avf->streams[i]);
diff --git a/libavformat/segment.c b/libavformat/segment.c
index 1d8589d9ed..4bcfc0b3b2 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -165,6 +165,7 @@ static int segment_mux_init(AVFormatContext *s)
oc->io_close2 = s->io_close2;
oc->io_open = s->io_open;
oc->flags = s->flags;
+ oc->strict_std_compliance = s->strict_std_compliance;
for (i = 0; i < s->nb_streams; i++) {
AVStream *st, *ist = s->streams[i];