summaryrefslogtreecommitdiff
path: root/libavfilter/vf_vmafmotion.c
diff options
context:
space:
mode:
authorsoftworkz <softworkz@hotmail.com>2022-05-23 11:26:09 +0000
committerMartin Storsjö <martin@martin.st>2022-05-24 11:50:24 +0300
commitf579a1d08b269b6dfc89596af20582c01950adb2 (patch)
treee0de52b871f32275496abf06f47bd1147ca8fa01 /libavfilter/vf_vmafmotion.c
parentd2ef44fbb16f3c5675b0c9aa0f281618f7a2a921 (diff)
downloadffmpeg-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_vmafmotion.c')
-rw-r--r--libavfilter/vf_vmafmotion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_vmafmotion.c b/libavfilter/vf_vmafmotion.c
index 8b7e9b17ef..6ae968f7e9 100644
--- a/libavfilter/vf_vmafmotion.c
+++ b/libavfilter/vf_vmafmotion.c
@@ -312,7 +312,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];