From 376c61c61b357265ed692a6a587ef9f0adf1d4a0 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 7 Sep 2020 19:11:55 +0200 Subject: [PATCH] avfilter/vf_nnedi: use av_fopen_utf8() --- libavfilter/vf_nnedi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c index 9bad99e98a..33ff503d92 100644 --- a/libavfilter/vf_nnedi.c +++ b/libavfilter/vf_nnedi.c @@ -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);