1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-12-04 14:00:22 +02:00

fftools: use fopen_utf8 to open FFREPORT

Should fix #11240
This commit is contained in:
Marvin Scholz
2025-09-09 01:24:18 +02:00
committed by Zhao Zhili
parent 4fbacb3944
commit 2a1d5dd720

View File

@@ -23,6 +23,7 @@
#include <stdio.h>
#include "cmdutils.h"
#include "fopen_utf8.h"
#include "opt_common.h"
#include "libavutil/avassert.h"
@@ -1204,7 +1205,7 @@ int init_report(const char *env, FILE **file)
if (!envlevel)
report_file_level = FFMAX(report_file_level, prog_loglevel);
report_file = fopen(filename.str, "w");
report_file = fopen_utf8(filename.str, "w");
if (!report_file) {
int ret = AVERROR(errno);
av_log(NULL, AV_LOG_ERROR, "Failed to open report \"%s\": %s\n",