]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_nnedi: use av_fopen_utf8()
authorPaul B Mahol <onemda@gmail.com>
Mon, 7 Sep 2020 17:11:55 +0000 (19:11 +0200)
committerPaul B Mahol <onemda@gmail.com>
Mon, 7 Sep 2020 17:13:19 +0000 (19:13 +0200)
libavfilter/vf_nnedi.c

index 9bad99e98a8474ed879d27df629c920f9e9e338f..33ff503d92248a391332f18f1af9fe1b549ab386 100644 (file)
@@ -922,7 +922,7 @@ static av_cold int init(AVFilterContext *ctx)
     int dims1offset = 0;
     int ret = 0, i, j, k;
 
-    weights_file = fopen(s->weights_file, "rb");
+    weights_file = av_fopen_utf8(s->weights_file, "rb");
     if (!weights_file) {
         av_log(ctx, AV_LOG_ERROR, "No weights file provided, aborting!\n");
         return AVERROR(EINVAL);