From patchwork Thu Jun 9 23:22:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aman Karmani X-Patchwork-Id: 36104 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:6914:b0:82:6b11:2509 with SMTP id q20csp642103pzj; Thu, 9 Jun 2022 16:22:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN6ScbLncQDJydfD1jQAOUHBijMW5UFE2hSDs7GLJWTkm7/EjyffqrpmSFMjr2RX/E+Txo X-Received: by 2002:a17:906:6dc6:b0:70f:ba24:319a with SMTP id j6-20020a1709066dc600b0070fba24319amr30537952ejt.303.1654816935627; Thu, 09 Jun 2022 16:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654816935; cv=none; d=google.com; s=arc-20160816; b=G6QcD+qq0Xhae6I4mPizepyinR0cDz9Clhze3NaTkkHSFmRlc2gh2YtNsj8sX7Q/ks nATQ4bG/0CAjX50R61cY0gfDxTyAy2FYMYTb5v1eOl3siVQCgekykhj39jnqB9u4wAdM 0teRGpj5K9Is6sEgmFYJUbIXN24xg++vjEJQvCNSHsEHZbFZIAoDfcPrpzXkPDKcXB0h vi2qBfas6VR36wc+Chycdw6t18pUMYWZV8uakYq6SFpDYuiuahqc4pdm6sju5stzWVhz K3jQ6Ljqeud0xK0f9equQJnPYSutFX30Tt/+VRNcXzWq9DdHBECnI6j7jI04BtyEjvAt U8pQ== 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:message-id:from :dkim-signature:delivered-to; bh=Yl/+UjFAtnQISHmIRDxf+exucXrKB0mDjZoEBgNSXhg=; b=Ct1VWnPBaSYjKVpqVuzvMA/a4q2NadikPMZB8C7gwEKeCJdcEPDz0wRIh5xosJLpeZ bkdNGdnjMn6zGIVphNeMygr9UDpyze1Y29vXdaPhMFoACntnIJnsDDlhJrNburpi7WOm +JiNC1MJ1lQrnRvvY44SHfTbeX3ywhAFSu9PqMn4t3Abv1/Jwa3cVPhjUkMPks4fJ0O4 4Musquf4lQQUz5lrYQpDc3p0+nngo1G80S3uHqSVTuwDNY258esN4DTlB7sLKlzc1aav p8vOAyudomfS47L+Cum34Qr7dCcQKELo/FFZNK5Ostv6keNZVjaRnOR0q1bxdBXgMpTE c3Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=OrHpKQiS; 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 hs23-20020a1709073e9700b00707ed6b60f1si6020184ejc.391.2022.06.09.16.22.15; Thu, 09 Jun 2022 16:22:15 -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=OrHpKQiS; 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 D977668B808; Fri, 10 Jun 2022 02:22:12 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DC69768B778 for ; Fri, 10 Jun 2022 02:22:06 +0300 (EEST) Received: by mail-pf1-f181.google.com with SMTP id z17so22347318pff.7 for ; Thu, 09 Jun 2022 16:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:date:subject:fcc:content-transfer-encoding :mime-version:to:cc; bh=aJGWoeXsioyg4Luo53qQIiEhMWhfRms4RfWdn1tRoh4=; b=OrHpKQiSICNLP268e0Uor1o/HB2WjACIur8TKYRmER5M8ZUdP4e7/ibresFn5ZMfyu 6Z0sZBMhuVWRZPZP0ZZzo/+Ss9oBZdgx4buAToYrLEqBGPZc8igknZQkJPHAZH/sKyVP AhA3nMJ0vNErgY/sZB3J2l+vUG1yiM9l9Rv0lMC+bhriTY1fQ49tWsM+V2GLSCoQ3V4P 8FX1HlXlazhFiy8TUs1ou2ikyTFgtSpMdKvvb8z8vEjJ7pYfIPvpbnqj1Mh8PpSoIJuR Zv9U8H8J4syYWgqcypPa5PIwzEc7y9Iz8Vy2IIgE4bh7ufXNyCDHYDTkIy5v8lpW27Kk 3nYg== 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:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=aJGWoeXsioyg4Luo53qQIiEhMWhfRms4RfWdn1tRoh4=; b=bGNvYGzHCwcfxjsw52PrnB+j949ahUYJCFTNo0EmelXQQWE/ek0vdrPzmnyUj0ZWgp I+2Ba8X1rYm9M5QB+Sp1P6bRE2w6yeNstESnaf+2adOF9XNAreEd24DQnpWyrgPzgJYw tSSgQOtsPGYzfATmPxL3xqEM9LnkR6NLrkkXIUxYATLTZqTdsJrB+B7jQLgo2JY+S2l8 M9D5P8Ejn2Mg7vKNGViKzbVsxMr2Z7OV1kQTJO2807GIyoCG9078KWapJCCS83IyzxnU +nGwACexLg/lfM1A3nJ20Xhl+TctpHhKEw+J4xe0Jc9cYjvyyq9/lJDCyiKelomYd8EC HKtA== X-Gm-Message-State: AOAM531CCx4PEP38v9ZOoou6JT/bN4QwYbTOsJ1yeZuu/eyJfUMAZCwp K4JM8NJYQzSf0zyQCRxnw0/Hw1lVR8DBkw== X-Received: by 2002:a63:8041:0:b0:3fc:6bdc:7320 with SMTP id j62-20020a638041000000b003fc6bdc7320mr36520977pgd.8.1654816925005; Thu, 09 Jun 2022 16:22:05 -0700 (PDT) Received: from [127.0.0.1] (master.gitmailbox.com. [34.83.118.50]) by smtp.gmail.com with ESMTPSA id cp17-20020a17090afb9100b001df51e34036sm267685pjb.0.2022.06.09.16.22.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Jun 2022 16:22:04 -0700 (PDT) From: softworkz X-Google-Original-From: softworkz Message-Id: Date: Thu, 09 Jun 2022 23:22:03 +0000 Fcc: Sent MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] [PATCH] avformat/os_support: use windows stat structs with 64bit time_t 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: rmb4KaAw0Ank From: softworkz Signed-off-by: softworkz --- avformat/os_support: use windows stat structs with 64bit time_t Signed-off-by: softworkz softworkz@hotmail.com Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-35%2Fsoftworkz%2Fsubmit_long_filenames2-v1 Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-35/softworkz/submit_long_filenames2-v1 Pull-Request: https://github.com/ffstaging/FFmpeg/pull/35 libavformat/os_support.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) base-commit: 5d5a01419928d0c00bae54f730eede150cd5b268 diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 958976cc6f..b419efa408 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -213,7 +213,7 @@ fallback: return _access(filename_utf8, mode); } -static inline void copy_stat(struct _stati64 *crtstat, struct win32_stat *buf) +static inline void copy_stat(struct _stat64 *crtstat, struct win32_stat *buf) { buf->st_dev = crtstat->st_dev; buf->st_ino = crtstat->st_ino; @@ -230,7 +230,7 @@ static inline void copy_stat(struct _stati64 *crtstat, struct win32_stat *buf) static inline int win32_stat(const char *filename_utf8, struct win32_stat *buf) { - struct _stati64 crtstat = { 0 }; + struct _stat64 crtstat = { 0 }; wchar_t *filename_w; int ret; @@ -250,7 +250,7 @@ static inline int win32_stat(const char *filename_utf8, struct win32_stat *buf) static inline int win32_fstat(int fd, struct win32_stat *buf) { - struct _stati64 crtstat = { 0 }; + struct _stat64 crtstat = { 0 }; int ret; ret = _fstat64(fd, &crtstat);