From patchwork Tue May 17 12:29:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aman Karmani X-Patchwork-Id: 35806 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp2013476pzb; Tue, 17 May 2022 05:30:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6MAj7lX5txApMluD5ARqs9MZ39LGyVocXcyWaFOzMyMncVOcIDvdUVk9wLU1nTIeauFMH X-Received: by 2002:a17:906:58c3:b0:6fe:7d3:a6c3 with SMTP id e3-20020a17090658c300b006fe07d3a6c3mr16625089ejs.317.1652790629300; Tue, 17 May 2022 05:30:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652790629; cv=none; d=google.com; s=arc-20160816; b=CPbBgCTC4Peog6tu7ZVVqfbRRwVa/k6x7BilJw6Gq2Vcvw+r1RlmixjW5E9zZtpLJG SFcaa21ci8CiWeP7pxRoMPqoynBry2UoEfQBe3lL7YGd6Pz9Apwgw0JdMLpnsVDjoiS9 jq5qnbZzPEmvUS/m2uAHCLUr/WyOm/3vfI0kQ+BK714Li3i8KjZ/7cHUxJXJWxv7EebB y+NjddQWlFZPTCLEUAmhZFWq1bGWyMeqo1qgz1DtZo8ub1Dc1s9mhihwWtGDpHkwUaHm DY8bnLdvHhhyQX24gywe0Zsy9lB964dQvU49Yrvt/xaAJHpMGOcqcTmkfWW1qP9/JWjz ifAA== 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:mime-version:fcc:date:references :in-reply-to:message-id:from:dkim-signature:delivered-to; bh=Zh6lJtj4zyYWc3b9FE8G8/K/a1aw07Sk5Kr9LNXj2M8=; b=rEqbPblLPcVjzGGdhzcYSgI06lteula+6tZ6jr94XZVCFgkfy3BYDohrPbsQ3lOzJv u/w1FtSrcAgF3007GE87jxFcLh+HyicTnNyR9pHBMUdii36ea02V9z0tzpS+Ht+cXAst yyrVh2Axn8hGN5uXqrRTSJmiHvvd1KlZUXDJ5qy8YJfeFeWoQt5cHTZ6q6OpLd80Q2LP syi3hYHyV9UWoEySTgy2XJQjwMQSenDd1SB6k17VmGftnNVUN9+WXBGReOGWs75mHkqV tdg3Im43p2ooKvnZqvUPegD0Kw/WW/SBX4JbGmUV04pAqoX6NPEXzTF6upsIX7sObbqM jaGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=Gyyrs0On; 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 m10-20020a17090679ca00b006e0f9bb12a5si2472901ejo.253.2022.05.17.05.30.28; Tue, 17 May 2022 05:30:29 -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=Gyyrs0On; 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 3722A68B445; Tue, 17 May 2022 15:30:09 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 613B968B403 for ; Tue, 17 May 2022 15:30:02 +0300 (EEST) Received: by mail-pj1-f51.google.com with SMTP id t11-20020a17090a6a0b00b001df6f318a8bso2261482pjj.4 for ; Tue, 17 May 2022 05:30:02 -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=QrrhQcqd6tc+7STA2ahoEm1bUn5LYpwWkDro2pkP0CQ=; b=Gyyrs0On9ng8ZyWAQNuyg1cT1VfNpx42mFzDBwLn2JE5MnEE4MAD6Hn88mXqszmqNW rPVKmdNGzU3h0M4tqvBmayvA0yBQkHrdRkUBonmXZhkr0mJIOHdIewRnmQq6Vu5ZKS81 omWJ3EdmZTyM1wOgxNLXqIbt4IQRLFxoFkTVAhRUEVVE9qNE9Uq5un71nA+Juoqk11Zw NKzqB5srMRpd9TE/Fi5m1aLT6vHaz/LSd5Q214oK1I2prYFqBGVShZLK7wgUqFTkhjih oyJUubYxyoVhqFgSUmUs/pSfSduOwKraGYZlJ0tpc6s9j7GNuQ1uC1GVv4CU3lB4fH/V NYyg== 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=QrrhQcqd6tc+7STA2ahoEm1bUn5LYpwWkDro2pkP0CQ=; b=hEtTYsYRFjb/CKSVDugQb8mGgaqwAkMsc9iDE7ZaX/soL6mWGFGOInnE5q07+TeLle 7FaWFeRVZFhe6BB0rMSR4QP3c4tSmVMyGT8n3r4+anPKp8yD5WoX610+id98vdRmYdui u7gac9WlCfukH3O+6yMKQxPsFTpllauwDY3bOBi2qFMBxkVi4K5/4PBmB7/U7zG94Tzn ut+KOvUIzyUF+QC3KuE9KHR5KMk+C9xUBo1nLK2u31LLHfYCWaxqxmyRBLh/Jsazf2Xp Uoy2IMqNslGCAZ03Udz6QdVUrNfC+hhe53FdXRzIiwj8JQf/NM+5J1drpBA4AA3X2oWC QhWw== X-Gm-Message-State: AOAM531IpOFLVGk2F1vf0gh0/z47kxw84/eML5uk8UTwOQ0hST4xSWAR N/8JFDQXHRftxhEGczwqEnQcEUyY5fjmKg== X-Received: by 2002:a17:90a:4a03:b0:1df:4583:cb26 with SMTP id e3-20020a17090a4a0300b001df4583cb26mr12186839pjh.173.1652790600852; Tue, 17 May 2022 05:30:00 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id b10-20020a170902650a00b0015e8d4eb269sm8787952plk.179.2022.05.17.05.30.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 May 2022 05:30:00 -0700 (PDT) From: softworkz X-Google-Original-From: softworkz Message-Id: <68192b1a1e2392a978126f93fd2adde4d4bce3a0.1652790597.git.ffmpegagent@gmail.com> In-Reply-To: References: Date: Tue, 17 May 2022 12:29:57 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v4 2/2] avcodec/dvdsubdec: 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: LFvBMfjqvvKS From: softworkz 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 --- libavcodec/dvdsubdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index 30fe4d41de..19b78b3eb1 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dvdsubdec.c @@ -617,7 +617,7 @@ static int parse_ifo_palette(DVDSubContext *ctx, char *p) const uint8_t *cm = ff_crop_tab + MAX_NEG_CROP; ctx->has_palette = 0; - if ((ifo = fopen(p, "r")) == NULL) { + if ((ifo = av_fopen_utf8(p, "r")) == NULL) { av_log(ctx, AV_LOG_WARNING, "Unable to open IFO file \"%s\": %s\n", p, av_err2str(AVERROR(errno))); return AVERROR_EOF; }