Codec (Linux): fixes crashing on AMD GPUs

Ref: https://github.com/fastfetch-cli/fastfetch/issues/2419#issuecomment-4812121503
This commit is contained in:
Carter Li committed 2026-06-27 08:12:22 +08:00
1 parent 64d205628e
commit ccdcd6ab6f
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}