From 3fc7e39eb8b398652790899b3a65b71cbbd4875f Mon Sep 17 00:00:00 2001 From: James Almer Date: Sat, 31 Jan 2026 11:55:05 -0300 Subject: [PATCH] avformat/cafenc: disable muxing Opus streams We're not writing a kuki chunk because its contents for Opus are currently unknown, so it's best if we don't allow the creation of non spec compliant files. Signed-off-by: James Almer --- libavformat/cafenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c index 5f2d79e0a7..0e51600403 100644 --- a/libavformat/cafenc.c +++ b/libavformat/cafenc.c @@ -121,6 +121,7 @@ static int caf_write_init(struct AVFormatContext *s) switch (par->codec_id) { case AV_CODEC_ID_AAC: + case AV_CODEC_ID_OPUS: av_log(s, AV_LOG_ERROR, "muxing codec currently unsupported\n"); return AVERROR_PATCHWELCOME; }