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 6A6A4402FF for ; Thu, 19 May 2022 21:41:03 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C676F68B4DA; Fri, 20 May 2022 00:40:49 +0300 (EEST) Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C9C4668B4A2 for ; Fri, 20 May 2022 00:40:41 +0300 (EEST) Received: by mail-pf1-f170.google.com with SMTP id bo5so6192969pfb.4 for ; Thu, 19 May 2022 14:40:41 -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=CW3jUZom9Oha0PY8SOZt5MPrLAnBJf47VP5z9lkHiiwRuVoJAxI191EMCMKz/nHh0x cQejb62OI1507/75xOl+32W78CG7lFr+ZdIlErT20CvIwwsYVs5OId1X/HG4fXsKdZsf ppy9z76CUdVTwjVRgWjx8rEXGGtYpWiJELkwdbKLJ/IFFMeHIq8kL2N7Uw2K4h/o7py5 skyjCYtcT0Q6hzvYoSoYgx+Lh4TW2ZkoRAjBE2AwehLoh0ld1p9ecWXQGHw2qRJOjtNl +07o1fBwSOLdrAAKYJxJGNvBYq1K23krUFraU+9h/jxiJveES+0YtFuUqre4yDG+PULC InWg== 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=F45tGlqxYACKeKX4o78KxOAMYvGtLhiPiJPL6QD9I54zrh+2cq9uqxdI7C2OcHtLaZ TPulKU/y/8Nq754puvdiijATEmivPTPR7934WtKcPmngV2c93tHO4O9GuS3mBc1ruNAQ k0p2o7LUfNYpQ6LnXVAci5zzBt4RX+72Bx/PD5DHWLB604ZdG0iWnNDCVxFsH5SEKZJZ nnTwEbdtqKQwDBujNxT9sqcDorx36yHbq2ugag3vouwl97IabYHwdxRmK5O3/MoW9Fvh O+lH2LjOO15LzHSaVyEQHWP8aPwDapUMiC/DU3c6YBL8oiXM/45MI2x1CBT52iDjbee8 b/tg== X-Gm-Message-State: AOAM533YKDQ7hDkkGpO6L5xjjTJrJo7vuMPzxGp7IY+YHMQh5lLVvZDl 5pqzcQBgCzl2Ja+ocpnUh9UnKa4M8GVZAw== X-Google-Smtp-Source: ABdhPJxZHrgli40pLhXUKlgcoOMYJxQMD2XlqYv6lgFoMLpAMMoY241PJDWg4lyjikOmcSJdoUCm9A== X-Received: by 2002:aa7:9f4b:0:b0:518:1402:cf6 with SMTP id h11-20020aa79f4b000000b0051814020cf6mr6604153pfr.15.1652996440264; Thu, 19 May 2022 14:40:40 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id b1-20020a17090a100100b001cd4989feb7sm302287pja.3.2022.05.19.14.40.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 May 2022 14:40:39 -0700 (PDT) From: softworkz X-Google-Original-From: softworkz Message-Id: <94d023ece3f101af3686d094bae6e15e429f1fe5.1652996437.git.ffmpegagent@gmail.com> In-Reply-To: References: Date: Thu, 19 May 2022 21:40:36 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH v5 2/3] 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 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 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; } -- 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".