From 677c2133979f6248edb85c89fd2e1b853ab03593 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Fri, 19 Jun 2026 23:02:13 +0800 Subject: [PATCH] Codec (Linux): fixes bug in `ffDetectCodecByVdpau` --- src/detection/codec/codec_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/codec/codec_linux.c b/src/detection/codec/codec_linux.c index 23a6bf774..10343b061 100644 --- a/src/detection/codec/codec_linux.c +++ b/src/detection/codec/codec_linux.c @@ -306,7 +306,7 @@ static const struct FFCodecVdpauCodec { }; static const char* ffDetectCodecByVdpau(FFCodecOptions* options, FFlist* result) { - if (options->showType == FF_CODEC_SHOW_TYPE_DECODER) { + if (options->showType != FF_CODEC_SHOW_TYPE_DECODER) { return "VDPAU only supports decoding"; }