diff options
author | softworkz <softworkz@hotmail.com> | 2022-05-23 11:26:09 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2022-05-24 11:50:24 +0300 |
commit | f579a1d08b269b6dfc89596af20582c01950adb2 (patch) | |
tree | e0de52b871f32275496abf06f47bd1147ca8fa01 /libavfilter/vf_ssim.c | |
parent | d2ef44fbb16f3c5675b0c9aa0f281618f7a2a921 (diff) | |
download | ffmpeg-f579a1d08b269b6dfc89596af20582c01950adb2.tar.gz |
avfilter: use avpriv_fopen_utf8() instead of plain fopen()
Unify file access operations by replacing usages of direct calls
to posix fopen() to prepare for long filename support on Windows.
Signed-off-by: softworkz <softworkz@hotmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavfilter/vf_ssim.c')
-rw-r--r-- | libavfilter/vf_ssim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c index 32f313817d..bceb3288ef 100644 --- a/libavfilter/vf_ssim.c +++ b/libavfilter/vf_ssim.c @@ -404,7 +404,7 @@ static av_cold int init(AVFilterContext *ctx) if (!strcmp(s->stats_file_str, "-")) { s->stats_file = stdout; } else { - s->stats_file = fopen(s->stats_file_str, "w"); + s->stats_file = avpriv_fopen_utf8(s->stats_file_str, "w"); if (!s->stats_file) { int err = AVERROR(errno); char buf[128]; |