From b0bb6fb58e460a641de568a6caa5ee89df196f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Mon, 1 Jun 2026 19:02:08 +0800 Subject: [PATCH] Codec: don't show `Unknown` --- src/modules/codec/codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/codec/codec.c b/src/modules/codec/codec.c index 4de76f491..b7fba43b1 100644 --- a/src/modules/codec/codec.c +++ b/src/modules/codec/codec.c @@ -68,7 +68,7 @@ static void printCodecLine(const FFCodecOptions* options, uint8_t index, FFstrbu if (options->moduleArgs.outputFormat.length == 0) { FF_STRBUF_AUTO_DESTROY typesJoined = ffStrbufCreate(); - for (FFCodecType type = FF_CODEC_TYPE_UNKNOWN; type <= FF_CODEC_TYPE_MAX; type <<= 1) { + for (FFCodecType type = FF_CODEC_TYPE_H261; type <= FF_CODEC_TYPE_MAX; type <<= 1) { if ((types & type) == 0) { continue; } @@ -81,7 +81,7 @@ static void printCodecLine(const FFCodecOptions* options, uint8_t index, FFstrbu puts(typesJoined.length ? typesJoined.chars : "None"); } else { FF_LIST_AUTO_DESTROY typeList = ffListCreate(); // Use list instead of pre-joined string for qjs and lua - for (FFCodecType type = FF_CODEC_TYPE_UNKNOWN; type <= FF_CODEC_TYPE_MAX; type <<= 1) { + for (FFCodecType type = FF_CODEC_TYPE_H261; type <= FF_CODEC_TYPE_MAX; type <<= 1) { if ((types & type) == 0) { continue; }