diff --git a/libavfilter/opencl.c b/libavfilter/opencl.c index 8e96543467..9c46cfdc09 100644 --- a/libavfilter/opencl.c +++ b/libavfilter/opencl.c @@ -225,7 +225,7 @@ int ff_opencl_filter_load_program_from_file(AVFilterContext *avctx, const char *src_const; int err; - file = fopen(filename, "r"); + file = av_fopen_utf8(filename, "r"); if (!file) { av_log(avctx, AV_LOG_ERROR, "Unable to open program " "source file \"%s\".\n", filename);