mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-27 14:39:09 +00:00
fix(libplacebo): fixed wide char string path support for GLSL shader path
This commit is contained in:
parent
fb0e3a040d
commit
d6f27b3f22
@ -43,7 +43,11 @@ int LibplaceboFilter::init(AVCodecContext *dec_ctx, AVCodecContext *enc_ctx, AVB
|
||||
} else {
|
||||
// Construct the fallback path using std::filesystem
|
||||
shader_full_path = find_resource_file(
|
||||
#ifdef _WIN32
|
||||
std::filesystem::path("models") / L"libplacebo" / (shader_path.wstring() + L".glsl")
|
||||
#else
|
||||
std::filesystem::path("models") / "libplacebo" / (shader_path.string() + ".glsl")
|
||||
#endif
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user