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 49C4842F01 for ; Fri, 13 May 2022 09:53:42 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 4F8E068B41C; Fri, 13 May 2022 12:53:28 +0300 (EEST) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4373568B49C for ; Fri, 13 May 2022 12:53:20 +0300 (EEST) Received: by mail-pf1-f182.google.com with SMTP id d25so7229119pfo.10 for ; Fri, 13 May 2022 02:53:20 -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=+7V9iSNnndg2RNcrTzt3FFfZ9Q5y54DKfk5/LWBBTGY=; b=BC80EeWoxjqIU2N8VR0Zhs8m/WkUCT87FzGAhze0iHYwEX8B02A6bDcLDH+4Mxn02X E23GLM/zJd4OmMEAFRkL1y5+0KALmBYesID41coLDjoAYLYGx24W5dxRvFcY7essTQvb 7Oc8Z5pPP7K7ItfGv0tgrWv4W5lxgwJcg/zvrcRtvGi8H/MTxfRZwue+bCG+rBySwWIM oK2i0fvgV8AcRtUGmFxyldrqK8y7j5pys4EvdiFdWWiotYI5fmTG68ghLOEqOM6F6DY8 PdlcO5uyk7MP9bOIHOzDGhut+xtiU1jF00a2wqwNIcO198LyrVuwO3zg/HVu4GZ65GvE 9AVg== 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=+7V9iSNnndg2RNcrTzt3FFfZ9Q5y54DKfk5/LWBBTGY=; b=itKNKKerhlpf6QngWssP2XrpSvz4Uj8coN3fkAY2J5ZvlzcwKAzMmzoEg+PrlC+n/Y Q1lzNBXNKgJp/gupCYDAanofaHlr1e/QgIggwiJZJSSz8kxuVd3nMqX0JHORHfX3AjCi K3KdmGwKhVE9zRs23QemTGOS4urgl5d2iGzHQuZZMRz6vV8Vk2bWTivg3aUJFwOg0RMW 61fEXj1H24AL9UnlLNxFFrpVAq6A/+xPPi62A2aBHBXw1AwPAoSQ5nOtU9IsEyELIAxu MODfdjmPJy3yjcMh4aYPXy4h13h45jxwYGwChomGYUtybMAOUoPPOfrmLhx5Dfg0jfTf w2aw== X-Gm-Message-State: AOAM5306AWmc3MJSaUqpsbzvBe9EKTUHXzpk+D36O3AtJKX+RKmO0qzs efrCpNSK3MA+j5JWegulTye3nmae2MVC3w== X-Google-Smtp-Source: ABdhPJw0q9rcxvXPBI6U7sYYNI7qy4aJo4T7IHm78sLpi3i3fcCzuUtF53UNP62I07AdWQWlq1s4TA== X-Received: by 2002:a63:8948:0:b0:3da:ec12:1b1c with SMTP id v69-20020a638948000000b003daec121b1cmr3309433pgd.598.1652435598685; Fri, 13 May 2022 02:53:18 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id y1-20020a170902d64100b0015e8d4eb2e0sm1330035plh.298.2022.05.13.02.53.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 May 2022 02:53:18 -0700 (PDT) From: softworkz X-Google-Original-From: softworkz Message-Id: In-Reply-To: References: Date: Fri, 13 May 2022 09:53:15 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH 2/2] avformat/os_support: Support long file names on Windows 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 --- libavformat/os_support.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 5e6b32d2dc..6c1e6c3851 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -153,7 +153,7 @@ static inline int win32_##name(const char *filename_utf8) \ wchar_t *filename_w; \ int ret; \ \ - if (utf8towchar(filename_utf8, &filename_w)) \ + if (get_extended_win32_path(filename_utf8, &filename_w)) \ return -1; \ if (!filename_w) \ goto fallback; \ @@ -177,7 +177,7 @@ static inline int win32_##name(const char *filename_utf8, partype par) \ wchar_t *filename_w; \ int ret; \ \ - if (utf8towchar(filename_utf8, &filename_w)) \ + if (get_extended_win32_path(filename_utf8, &filename_w)) \ return -1; \ if (!filename_w) \ goto fallback; \ @@ -199,9 +199,9 @@ static inline int win32_rename(const char *src_utf8, const char *dest_utf8) wchar_t *src_w, *dest_w; int ret; - if (utf8towchar(src_utf8, &src_w)) + if (get_extended_win32_path(src_utf8, &src_w)) return -1; - if (utf8towchar(dest_utf8, &dest_w)) { + if (get_extended_win32_path(dest_utf8, &dest_w)) { av_free(src_w); return -1; } -- 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".