From patchwork Thu May 19 21:40:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aman Karmani X-Patchwork-Id: 34715 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:9992:b0:82:461d:f3b with SMTP id ve18csp290157pzb; Thu, 19 May 2022 14:40:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNxtqgxrHmmnVJxBmHXW1DRyt5VYymqt/2YMEFZFgnn4aun0H+p1E7Ot3UtMRMb5Xjnzso X-Received: by 2002:aa7:c683:0:b0:42a:b2cc:b345 with SMTP id n3-20020aa7c683000000b0042ab2ccb345mr7611085edq.282.1652996448488; Thu, 19 May 2022 14:40:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652996448; cv=none; d=google.com; s=arc-20160816; b=r2icHuleF7ho8I7UI03JePstJzDG9hF/bSfiU+U8V5AHP5tqfnXXEob3RRKM9Qew5X B8H8WdPM51JAhXmvbHaKTpeD4A/ZSjWJVIKGjGmyTL2Ol5NDilvoaY5qZZge0BHjrI8H 2CHA9VybJYCNxkco5Gp7Enit7WMbim+Ty7aA0ijVhyscyplqbH5b3t4T6RYS3YChes24 HDSWiasvN9kj0L3DcRZI2HTY3ITV5Mcd8XBP7siKpsojhGU3MwITJJbbieOMJucSqwoh quHlhWV+rXuqDKVid6mLvRCcU4YDYlnc48/KSxtrRSNaKY7UH1GIz8uN7B6KvdI9yTEx z3tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:to:fcc:mime-version:date:from:references :in-reply-to:message-id:dkim-signature:delivered-to; bh=C59JgPdOeDBsvJScNcneQ42BC29vzIEw1jSfyAa8qKk=; b=XFHuJgo/h0vx5m0Ti887nlOzWUC9I92zp11PoB1SExefhSGKiLKvEePUzMCnYuqSbx Uz3hKpLQLzwcDiZZKxDqmp0Gsrsh48IAcJvnPNImn6u5OZPs7TXIhNrHcTJosBk9h1SD YUaQtSWKle8MgPvg5poxWPORqmCKBF4YhEf+ngKcA5EKZKJmLy8aRGNDSL73f+g3Sjsy jO+dWTzAhwfLU4TGV0DCqKAaSEwvwbphydGP0SpgpRl784TMMmvZPvlmSUs7S/V589UO +Z3g1R+lhRAKykLAi/DKpaNEosjFfl3mJVEJVwayAY0argMWdVXxR9swNL3AqVJ6YwYx j/4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=jKcuzNaC; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id jz23-20020a17090775f700b006df76385b8csi5959329ejc.44.2022.05.19.14.40.48; Thu, 19 May 2022 14:40:48 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=jKcuzNaC; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5352968B4A0; Fri, 20 May 2022 00:40:46 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 48FA468B2C1 for ; Fri, 20 May 2022 00:40:40 +0300 (EEST) Received: by mail-pg1-f176.google.com with SMTP id 31so6143276pgp.8 for ; Thu, 19 May 2022 14:40:40 -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:mime-version :content-transfer-encoding:fcc:to:cc; bh=lBbLssVJ42COUeBXa2ECAYGkLLy3frEPJfHL/ZOcMOg=; b=jKcuzNaCMOByV3wwJpovsSVtF1YFWR6HKJkQSkvMvbSKuvyA0OK3lUSUKlSx9Z9tD6 AIhveHzL7Kf3PHO2lRbQtgGTL3Z7y27N94mlM5oqpOsl2uTDG8iktpqrsJpWGFPA0E/z WIgLz3bXzQQ5Reg8u1nxOK6fbNfIFPeEzAcAniWNiABR2VeE2iiZvAv/S+VV+QbHmF7R vEYBeyVks472kJHa1Dpqhj2JKlCk29jvtHAnW4mu56UBT5eQgeyqfOGFpL/XHA/Wfvzh ZNmcqhyeKstHPztyGFMPAzd1L4VCdK3ZoYv3crPGMoc2byq8PUDyuyxUuJYZi39tA6VS 6MFw== 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:mime-version:content-transfer-encoding:fcc:to:cc; bh=lBbLssVJ42COUeBXa2ECAYGkLLy3frEPJfHL/ZOcMOg=; b=i21pmK7gM9rWbiAPXt63VlW9tAddonScjS9HJ6UzGKXOFhCYXquSLMcAeWzmofnJoV NDQAMSJPqS2EaC4E83LrhPQ7HADnL99wr9CHDRz1BRf/cgSdb5pZp0N0jNpjazirCBxF 5+iA67rhJ/nBHRcvV6KU2T4i11ue7PtgdKyDVBQjMmvpwW6xvOKB7nXxL0gHIS2AMEnK GQy0F21R4JJ0tORwB3hur3MhLwVM0YLAYu0fFyOEN1IR5MLOi7ZFAoobPyD32Ltv5Jk0 0MfTfGLUCgTu0+qqPOE4/eIPxxOdBgxwjmE4hFGiVoo1Vaaa8Iq91Jy6pGZpyHI2W/k4 QQsQ== X-Gm-Message-State: AOAM532RYfZ8dIWcrDg5nfwRVeQLjs39udGyrX9xnG4I5osUixAwG1ok uNFVIGN8fyt24jSr8Njx3xPLIh5aV5PdNQ== X-Received: by 2002:a05:6a00:22c3:b0:518:5126:67f6 with SMTP id f3-20020a056a0022c300b00518512667f6mr1645578pfj.58.1652996438345; Thu, 19 May 2022 14:40:38 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id n89-20020a17090a5ae200b001df6173700dsm254814pji.49.2022.05.19.14.40.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2022 14:40:37 -0700 (PDT) Message-Id: In-Reply-To: References: From: ffmpegagent Date: Thu, 19 May 2022 21:40:34 +0000 MIME-Version: 1.0 Fcc: Sent To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v5 0/3] 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 , Tobias Rapp Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: bCFiF4luuXa/ 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 v4: Fix and improve commit messages v5: Add patch to remap ff_open in libavfilter for MSVC on Windows softworkz (3): avfilter: use av_fopen_utf8() instead of plain fopen() avcodec/dvdsubdec: use av_fopen_utf8() instead of plain fopen() avfilter: Make avpriv_open a library-internal function on msvcrt libavcodec/dvdsubdec.c | 2 +- libavfilter/Makefile | 1 + libavfilter/af_firequalizer.c | 2 +- libavfilter/file_open.c | 1 + 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 +- 11 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 libavfilter/file_open.c base-commit: 41a558fea06cc0a23b8d2d0dfb03ef6a25cf5100 Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-26%2Fsoftworkz%2Fsubmit_replace_fopen-v5 Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-26/softworkz/submit_replace_fopen-v5 Pull-Request: https://github.com/ffstaging/FFmpeg/pull/26 Range-diff vs v4: 1: 7c455d7fa0 = 1: bcafcfacea avfilter: use av_fopen_utf8() instead of plain fopen() 2: 68192b1a1e = 2: 94d023ece3 avcodec/dvdsubdec: use av_fopen_utf8() instead of plain fopen() -: ---------- > 3: 5e50103af3 avfilter: Make avpriv_open a library-internal function on msvcrt