avfilter/opencl: use av_fopen_utf8()
authorPaul B Mahol <onemda@gmail.com>
Fri, 14 Feb 2020 20:48:54 +0000 (21:48 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 14 Feb 2020 20:49:47 +0000 (21:49 +0100)
libavfilter/opencl.c

index 8e96543..9c46cfd 100644 (file)
@@ -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);