From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 83B7142D9A for ; Sat, 7 May 2022 17:39:37 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4A5F268B3D7; Sat, 7 May 2022 20:39:21 +0300 (EEST) Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.171]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D893668B3C3 for ; Sat, 7 May 2022 20:39:14 +0300 (EEST) Received: by mail-pf1-f171.google.com with SMTP id a11so8838041pff.1 for ; Sat, 07 May 2022 10:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:in-reply-to:references:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=bzXGCPqVB2wsD/vOW/1HNIC/qtIvf45dWd2NhLVDFTI=; b=lG/feD48hqAyvFl1sk+ek0lcZieGZsfhfsOkXfdnww0Ym7lLSsFgu7tVEPIHCes9C2 sqEWQFpCn+weX7I5x4BZ6bpk45Iaa41E6UZUBD8Y2M2Yo8HdAV9NnhKMAMB6+dfv+6fz NfQUzSi+bgQrO+UK0HbIagWCaJcfvceGKAf5aAL1xykqJYqCXCLXFuTPawU7pkqcccno YFRcnuscvsyrF7G1gXtIVIGmk+fwWQuyDcu0WJnKEzjzLZl5V2xEnu/kQup+y1cMF9Za wJYaGkMW4C0vtTyGDlsoopBkl0kjeaGc9MOQg5IZ6Km6yeaUKlliGfi897lk4bUZDvlf r0kA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:in-reply-to:references:date :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=bzXGCPqVB2wsD/vOW/1HNIC/qtIvf45dWd2NhLVDFTI=; b=amKyiHDrTgOEbxU8/O43CKUhWj9x1Cti83RS2ua594EJ9jdsSX5jZhWJpC6LoxvASY QfQkEIxhQV1gp3K4PJgEYetidOKwYka+OVKdqyyhRFLb/pB3qyBsOGDvrDhxtCo9lMuJ f+4dllMTsjk141dvs6BmzJicGzCc3m6OeDt7rvwzotLzCZqbypVaXNcYCCKRXLbEI9CG bdxPaD1i+KllYdw9LfS6vtBYV01hjJARGgUR/vmQfjyp+rdZJwvJDe0VWWRtLT7nPtGL RgCxY1O8PS4XPDluOnTFnBPaB+6+uS6U+bDgmhraiJZWGOxZKqIlqxzm7JMOvSEt7Hiz At0w== X-Gm-Message-State: AOAM531LlxwwhPcJGHej//TXZ/NdK0K4H11011Pdp00yXy8FmmLkVJLj ABUURk8sPaW6qxG9uU/hxZptVPmCEWCj3w== X-Google-Smtp-Source: ABdhPJzRQsx7PdHClNZ0xEHbKqbtYIAz40vuaJno+Z6Y3bTDe/kaR5bQXK76AbOZCXNjynX3Lk/ESQ== X-Received: by 2002:a65:6946:0:b0:39d:a0c3:71f with SMTP id w6-20020a656946000000b0039da0c3071fmr7010932pgq.160.1651945153128; Sat, 07 May 2022 10:39:13 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id g8-20020a1709029f8800b0015edc07dcf3sm3910790plq.21.2022.05.07.10.39.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 07 May 2022 10:39:12 -0700 (PDT) From: softworkz X-Google-Original-From: softworkz Message-Id: <3266640a93ac750a916950a41ca34bc5b7a3bf6c.1651945150.git.ffmpegagent@gmail.com> In-Reply-To: References: Date: Sat, 07 May 2022 17:39:09 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH 2/2] avfilter: use av_fopen_utf8() instead of plain fopen() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: softworkz Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: softworkz Signed-off-by: softworkz --- libavfilter/af_firequalizer.c | 2 +- libavfilter/vf_deshake.c | 2 +- libavfilter/vf_signature.c | 4 ++-- libavfilter/vf_ssim.c | 2 +- libavfilter/vf_vmafmotion.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavfilter/af_firequalizer.c b/libavfilter/af_firequalizer.c index c19a2fe122..e1497dcef0 100644 --- a/libavfilter/af_firequalizer.c +++ b/libavfilter/af_firequalizer.c @@ -604,7 +604,7 @@ static int generate_kernel(AVFilterContext *ctx, const char *gain, const char *g if (ret < 0) return ret; - if (s->dumpfile && (!s->dump_buf || !s->analysis_rdft || !(dump_fp = fopen(s->dumpfile, "w")))) + if (s->dumpfile && (!s->dump_buf || !s->analysis_rdft || !(dump_fp = av_fopen_utf8(s->dumpfile, "w")))) av_log(ctx, AV_LOG_WARNING, "dumping failed.\n"); vars[VAR_CHS] = inlink->ch_layout.nb_channels; diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c index 4f28467bb2..dea69e11cd 100644 --- a/libavfilter/vf_deshake.c +++ b/libavfilter/vf_deshake.c @@ -353,7 +353,7 @@ static av_cold int init(AVFilterContext *ctx) } if (deshake->filename) - deshake->fp = fopen(deshake->filename, "w"); + deshake->fp = av_fopen_utf8(deshake->filename, "w"); if (deshake->fp) fwrite("Ori x, Avg x, Fin x, Ori y, Avg y, Fin y, Ori angle, Avg angle, Fin angle, Ori zoom, Avg zoom, Fin zoom\n", 1, 104, deshake->fp); diff --git a/libavfilter/vf_signature.c b/libavfilter/vf_signature.c index 4ca57ebf1d..904123fd4e 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 = av_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 = av_fopen_utf8(filename, "wb"); if (!f) { int err = AVERROR(EINVAL); char buf[128]; diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c index 32f313817d..4a82cbec06 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 = av_fopen_utf8(s->stats_file_str, "w"); if (!s->stats_file) { int err = AVERROR(errno); char buf[128]; diff --git a/libavfilter/vf_vmafmotion.c b/libavfilter/vf_vmafmotion.c index 8b7e9b17ef..2ac67e5935 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 = av_fopen_utf8(s->stats_file_str, "w"); if (!s->stats_file) { int err = AVERROR(errno); char buf[128]; -- ffmpeg-codebot _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".