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 E15FD42F98 for ; Tue, 17 May 2022 00:39:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 175FC68B483; Tue, 17 May 2022 03:39:12 +0300 (EEST) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id CAB0C6801E6 for ; Tue, 17 May 2022 03:39:05 +0300 (EEST) Received: by mail-pg1-f174.google.com with SMTP id a191so15608089pge.2 for ; Mon, 16 May 2022 17:39:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:in-reply-to:references:from:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=qG5KDRkgxAyU2jlL1bwYmicuUiJSPHyUmFAo6B42QaI=; b=UAhDK508manKxI4WeAMfaAsUrjyBcXtkDYqKpXbPIcIOLGN0JKbKX8hlBzKf5xDfgy lhtfZ2BNGzuifxs9nrnH+41FaWoDSECUFBBDIxoO+hXn3o+ZPbpPs1vH6gjypiV320e/ yNilSvYiImzmaFXbkrCGvnlajKS6lNpfeLkS4j9mUkoCO7pMp8a4nlVbpqz7pvWH+EPn 4m4rZVVWzuVFVKCxznK+oi+V7RhwIijcWlzEauvEnYAZEfcWUKKDshzZpEWKQ0KzIEa2 5q9DdjXAJJGj6312pR3EH4buVNpzb1RfMkaf/4er/6uPn2QUaAxdi2z/wc7oqreaO6MT K7MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:in-reply-to:references:from:date :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=qG5KDRkgxAyU2jlL1bwYmicuUiJSPHyUmFAo6B42QaI=; b=Bn9c+qjBT9rt+Au1+EoPPKum//apWgr3RLG7ya00z+qtcqMAu12ItO62iKrYPp+4X5 1poXWlB/2THIXrsIPDamS4rDXIExMB4eFNeM03HIg9EG243ykLkqlVkaKY7taVBETkQa 8W8diNPLAxGRXE0eTJAjbwIHohE5XBs/NNxRtcQ2yK3cYCBly/NbmK0sQJ2lxVcVC2Ji nkJkkzl/LoOB9DWkP+xb/x/YAyOdZfh/iKQdXdtaNXRNpEix4pHS8S8p7/GdoTsCzFed 6w/LKF0l7j5tvCE7OhaZ7zCTrxuLRogxiz+0ck2179p5wHcBY8U0kbxSiaDXXD0yngLi lyRQ== X-Gm-Message-State: AOAM532eZ6IfCKXXrQTIVNH+4zZx7OdUjlynAaB618GfzL2jOkJAIrkx mFY3t840sFwzEyyLuKILOqe1vz5GdCvHuA== X-Google-Smtp-Source: ABdhPJymcLo9NwpBs92r4kbCGOstEd6JiC1UTDj7FQam28cEHtywp3fuQqjjWZTKmAY6sInIpvyg8w== X-Received: by 2002:a63:2ad0:0:b0:3c1:5f7e:fd78 with SMTP id q199-20020a632ad0000000b003c15f7efd78mr17483508pgq.56.1652747944123; Mon, 16 May 2022 17:39:04 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id q9-20020a170902a3c900b0015e8d4eb210sm7577106plb.90.2022.05.16.17.39.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 May 2022 17:39:03 -0700 (PDT) Message-Id: In-Reply-To: References: From: ffmpegagent Date: Tue, 17 May 2022 00:39:00 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v3 0/2] 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: Martin =?UTF-8?Q?Storsj=C3=B6?= , 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: Unify file access operations by replacing usages of direct calls to posix fopen() v2: Remove changes to fftools for now v3: Add some additional replacements softworkz (2): avfilter: use av_fopen_utf8() instead of plain fopen() avfilter/dvdsubdec: use av_fopen_utf8() instead of plain fopen() libavcodec/dvdsubdec.c | 2 +- libavfilter/af_firequalizer.c | 2 +- libavfilter/vf_deshake.c | 2 +- libavfilter/vf_psnr.c | 2 +- libavfilter/vf_signature.c | 4 ++-- libavfilter/vf_ssim.c | 2 +- libavfilter/vf_vidstabdetect.c | 2 +- libavfilter/vf_vidstabtransform.c | 2 +- libavfilter/vf_vmafmotion.c | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) base-commit: e3580f60775c897c3b13b178c57ab191ecc4a031 Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-26%2Fsoftworkz%2Fsubmit_replace_fopen-v3 Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-26/softworkz/submit_replace_fopen-v3 Pull-Request: https://github.com/ffstaging/FFmpeg/pull/26 Range-diff vs v2: 1: e47287be64 ! 1: d81855ba42 avfilter: use av_fopen_utf8() instead of plain fopen() @@ libavfilter/vf_deshake.c: static av_cold int init(AVFilterContext *ctx) 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); + ## libavfilter/vf_psnr.c ## +@@ libavfilter/vf_psnr.c: 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]; + ## libavfilter/vf_signature.c ## @@ libavfilter/vf_signature.c: static int xml_export(AVFilterContext *ctx, StreamContext *sc, const char* filen FILE* f; @@ libavfilter/vf_ssim.c: static av_cold int init(AVFilterContext *ctx) int err = AVERROR(errno); char buf[128]; + ## libavfilter/vf_vidstabdetect.c ## +@@ libavfilter/vf_vidstabdetect.c: static int config_input(AVFilterLink *inlink) + av_log(ctx, AV_LOG_INFO, " show = %d\n", s->conf.show); + av_log(ctx, AV_LOG_INFO, " result = %s\n", s->result); + +- s->f = fopen(s->result, "w"); ++ s->f = av_fopen_utf8(s->result, "w"); + if (s->f == NULL) { + av_log(ctx, AV_LOG_ERROR, "cannot open transform file %s\n", s->result); + return AVERROR(EINVAL); + + ## libavfilter/vf_vidstabtransform.c ## +@@ libavfilter/vf_vidstabtransform.c: static int config_input(AVFilterLink *inlink) + av_log(ctx, AV_LOG_INFO, " zoomspeed = %g\n", tc->conf.zoomSpeed); + av_log(ctx, AV_LOG_INFO, " interpol = %s\n", getInterpolationTypeName(tc->conf.interpolType)); + +- f = fopen(tc->input, "r"); ++ f = av_fopen_utf8(tc->input, "r"); + if (!f) { + int ret = AVERROR(errno); + av_log(ctx, AV_LOG_ERROR, "cannot open input file %s\n", tc->input); + ## libavfilter/vf_vmafmotion.c ## @@ libavfilter/vf_vmafmotion.c: static av_cold int init(AVFilterContext *ctx) if (!strcmp(s->stats_file_str, "-")) { -: ---------- > 2: 1be02d9e04 avfilter/dvdsubdec: use av_fopen_utf8() instead of plain fopen() -- 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".