From ccdcd6ab6fd708df7d5c310aa877bb201487ec4a Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sat, 27 Jun 2026 07:57:22 +0800 Subject: [PATCH] Codec (Linux): fixes crashing on AMD GPUs Ref: https://github.com/fastfetch-cli/fastfetch/issues/2419#issuecomment-4812121503 --- 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 13639f3c9..2a2c213ca 100644 --- a/src/detection/codec/codec_linux.c +++ b/src/detection/codec/codec_linux.c @@ -237,7 +237,7 @@ static const char* detectCodecByVaDrm(FFVAData* vaData, FFCodecOptions* options, continue; } - FF_AUTO_CLOSE_FD int fd = openat(drifd, entry->d_name, O_RDONLY | O_CLOEXEC); + FF_AUTO_CLOSE_FD int fd = openat(drifd, entry->d_name, O_RDWR | O_CLOEXEC); if (fd < 0) { continue; }