From fdce17953c72c52b5f5015dd40eea966d532f85b Mon Sep 17 00:00:00 2001 From: Gyan Doshi Date: Wed, 17 Dec 2025 22:52:11 +0530 Subject: [PATCH] lavf/supenc: add flag for default codecs only The muxer does not accept any other codecs. --- libavformat/supenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/supenc.c b/libavformat/supenc.c index c664723bc4..04a21a9e65 100644 --- a/libavformat/supenc.c +++ b/libavformat/supenc.c @@ -88,7 +88,8 @@ const FFOutputFormat ff_sup_muxer = { .p.audio_codec = AV_CODEC_ID_NONE, .p.subtitle_codec = AV_CODEC_ID_HDMV_PGS_SUBTITLE, .p.flags = AVFMT_VARIABLE_FPS | AVFMT_TS_NONSTRICT, - .flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH, + .flags_internal = FF_OFMT_FLAG_MAX_ONE_OF_EACH | + FF_OFMT_FLAG_ONLY_DEFAULT_CODECS, .init = sup_init, .write_packet = sup_write_packet, };