lavf/supenc: add flag for default codecs only

The muxer does not accept any other codecs.
This commit is contained in:
Gyan Doshi
2025-12-17 22:52:11 +05:30
committed by Gyan Doshi
parent 20b671f651
commit fdce17953c

View File

@@ -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,
};