Fix CRT shader: remove build_opts (not supported by jellyfin-ffmpeg)

program_opencl in this jellyfin-ffmpeg version does not have a build_opts
option. This caused FFmpeg to exit with code 8 before even running.

The shader already has #ifndef SHADOW_MASK / #define SHADOW_MASK 2 / #endif
as defaults, so removing build_opts keeps the same Aperture Grille mask.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mani
2026-02-26 00:11:46 +01:00
parent d12a39e0c0
commit 945cb3a116

View File

@@ -3768,7 +3768,7 @@ namespace MediaBrowser.Controller.MediaEncoding
[
"scale_opencl=format=rgba",
FormattableString.Invariant(
$"program_opencl=source={escapedPath}:kernel=crt_lottes:build_opts='{buildOpts}'"),
$"program_opencl=source={escapedPath}:kernel=crt_lottes"),
"scale_opencl=format=nv12"
];
}
@@ -3790,7 +3790,7 @@ namespace MediaBrowser.Controller.MediaEncoding
var buildOpts = GetCrtBuildOpts(state);
return FormattableString.Invariant(
$"format=rgba,hwupload=derive_device=opencl,program_opencl=source={escapedPath}:kernel=crt_lottes:build_opts='{buildOpts}',hwdownload,format=yuv420p");
$"format=rgba,hwupload=derive_device=opencl,program_opencl=source={escapedPath}:kernel=crt_lottes,hwdownload,format=yuv420p");
}
/// <summary>