]> git.sesse.net Git - ffmpeg/commitdiff
avfilter/vf_fieldhint: use av_fopen_utf8()
authorPaul B Mahol <onemda@gmail.com>
Fri, 14 Feb 2020 20:47:55 +0000 (21:47 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 14 Feb 2020 20:47:55 +0000 (21:47 +0100)
libavfilter/vf_fieldhint.c

index a5d6762f093967c1f19c3b9ffcea7b70c4c00845..c120bb01c35f53cbcba4977f4f4c580a41f9e341 100644 (file)
@@ -65,7 +65,7 @@ static av_cold int init(AVFilterContext *ctx)
         av_log(ctx, AV_LOG_ERROR, "Hint file must be set.\n");
         return AVERROR(EINVAL);
     }
-    s->hint = fopen(s->hint_file_str, "r");
+    s->hint = av_fopen_utf8(s->hint_file_str, "r");
     if (!s->hint) {
         ret = AVERROR(errno);
         av_log(ctx, AV_LOG_ERROR, "%s: %s\n", s->hint_file_str, av_err2str(ret));