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_signature.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_signature.c')
-rw-r--r-- | libavfilter/vf_signature.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_signature.c b/libavfilter/vf_signature.c index 4ca57ebf1d..5cff149756 100644 --- a/libavfilter/vf_signature.c +++ b/libavfilter/vf_signature.c @@ -386,7 +386,7 @@ static int xml_export(AVFilterContext *ctx, StreamContext *sc, const char* filen FILE* f; unsigned int pot3[5] = { 3*3*3*3, 3*3*3, 3*3, 3, 1 }; - f = fopen(filename, "w"); + f = avpriv_fopen_utf8(filename, "w"); if (!f) { int err = AVERROR(EINVAL); char buf[128]; @@ -500,7 +500,7 @@ static int binary_export(AVFilterContext *ctx, StreamContext *sc, const char* fi if (!buffer) return AVERROR(ENOMEM); - f = fopen(filename, "wb"); + f = avpriv_fopen_utf8(filename, "wb"); if (!f) { int err = AVERROR(EINVAL); char buf[128]; |