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

index 9e820a17c97ac498f2590e1724cce1c4f66ad562..fda85b16b4d1b5680127371590e23cd0b97b5438 100644 (file)
@@ -805,7 +805,7 @@ static av_cold int lut3d_init(AVFilterContext *ctx)
         return set_identity_matrix(ctx, 32);
     }
 
-    f = fopen(lut3d->file, "r");
+    f = av_fopen_utf8(lut3d->file, "r");
     if (!f) {
         ret = AVERROR(errno);
         av_log(ctx, AV_LOG_ERROR, "%s: %s\n", lut3d->file, av_err2str(ret));
@@ -1588,7 +1588,7 @@ static av_cold int lut1d_init(AVFilterContext *ctx)
         return 0;
     }
 
-    f = fopen(lut1d->file, "r");
+    f = av_fopen_utf8(lut1d->file, "r");
     if (!f) {
         ret = AVERROR(errno);
         av_log(ctx, AV_LOG_ERROR, "%s: %s\n", lut1d->file, av_err2str(ret));