From patchwork Mon Sep 16 17:57:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?RmlsaXAgTWHFoWnEhw==?= X-Patchwork-Id: 51622 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:9fc3:0:b0:48e:c0f8:d0de with SMTP id k3csp1515869vqy; Mon, 16 Sep 2024 10:59:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVK+FGc85dVFpBKAbEGAJdWmuLthhY+LtGH0bUuNurhgGZhfrGvO0WyblFctqyipN18E+JwwHRtjHc2czQG8hP4@gmail.com X-Google-Smtp-Source: AGHT+IE6LDTPlXu3OnbYqgQ+0Ys+cL5F2lWq8wuOJ3J2l4C1l6/UIsV47sQrw8gSEg27XSzI91Sz X-Received: by 2002:a2e:beaa:0:b0:2ef:296d:1dd5 with SMTP id 38308e7fff4ca-2f787ca2085mr85536231fa.0.1726509596247; Mon, 16 Sep 2024 10:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1726509596; cv=none; d=google.com; s=arc-20240605; b=IMlIuJlryZAgZ9WdCjM0nimUqc5JiRBpoCtDn59OMK5K3CuudtAnkt/suq20Fw5vRa 56hAV0QDIZDZ4oq/20BarcRV8pWnsqi9xYzR2KUQTcaWNj1ReZw9vxrYGRWlwUZJGGWB kAWX6Gk7xEF//oZ7xYS8IsXxwvJanwQhIGPYFfIDHCYcpmsGHHqC/3uTMcO2jeuUd9Nb r/wL5lMWlErA+DHzlY8JHQmrWLkvBSquQZb6GTRZHHcQwQP1Suqnmcu4mcYucB1OcVj0 87TtY8sI80AGtYIXZN75rdnepi+kxOy0Tw5w0/YSq4lms6AW9qOqHEC80QOC1mz4N3Xn 2m4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=w8cKWlaJ4KfyvlmXWFXs1jRdaxazogysf4e9lvxTiwY=; fh=vUG20E56bhII0xGyaMwCR+cO1JMOl7NOj4ka3/90tN8=; b=QccZWCL4Zz++VCy/0zq5rXf/FcBeZHP/uCZokwj5uQFuX9kKct5qw1q0+o7demwhdC g/PReB9DHDtQ7SPGNxfT/zB1FaXk9QwsAJxt3ViEk0O0X5cZTEBeLhSjIB0lV0sgspNR 6wXSkHci7U+j3/ZG87wEGnIhotSq+rOqsbvVjwE/fZ4IjFqxEiFvwCwfSh4QkGdItqFm Er8LimjnD/vY+JPIsp3i47glru/67Pa+/9kcE9fj4+ctQoYpHC7DihBxzu5Jw9WFGnq8 NgK16C/wNJXaBKFxsWGqsHHXobVKnxImGrACrpYOjNWO/z7hDPylI5t63k2tZhBsdNUs OvLg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20230601 header.b=YD0sB5Ox; 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; dara=fail header.i=@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 38308e7fff4ca-2f79d2db46csi17515381fa.181.2024.09.16.10.59.55; Mon, 16 Sep 2024 10:59:56 -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=20230601 header.b=YD0sB5Ox; 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; dara=fail header.i=@gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 50C3D68DCBD; Mon, 16 Sep 2024 20:59:50 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 686AC68DC23 for ; Mon, 16 Sep 2024 20:59:43 +0300 (EEST) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-42ca4e0299eso36779295e9.2 for ; Mon, 16 Sep 2024 10:59:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726509582; x=1727114382; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3kjBpMcO9fWqx3sLfcL11BNs8Bs9qW+615p3A8IxiaI=; b=YD0sB5OxUu5Sy0ng2alGtH5y9ZqKSk8klQFWeJ2QGSSiHxCXTpqSaE2xZq0EHxPA1K Erdfka7zJ8NWvPGdkBIf/xa9r2wCj7sQ/797B7eP8FCzna9e9I2OcViTlNmoYUsDHmIc 4x+OKviyYZD+ViPYHwgNH/WmzHchoNval7m8T8jz0bj1CeVtwHQo+JshI7uQLyW9hq9d 43YHwVOruumd0Skm7MjbStJkWbKXeJh0wh8+fJK7hv0ec0Cmx+WzJNJOFP35UzH8PZVY k6vMCG4PWSV4ZNTPLWG4epLGPJUet2Rh2B01FWESSFgxDTmVYzPNoqBGuwJS9pXC5VuI GK8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726509582; x=1727114382; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3kjBpMcO9fWqx3sLfcL11BNs8Bs9qW+615p3A8IxiaI=; b=OgKUP1R+vuH89dWdHoW2F/AyZmB+WmnkOuUtF5+69mUBtzSU5DxS+/HbTiZYNj21IC D6hZvrewHq1j6XfexOueEbaOz+cmq8ZtnMkZkVa7KOtH7cCmkGj4XLY6/Ej/U+NwtDfN b+KbfLbCn6wZgeJI84aZzQKZxbRirbzC8zavp80inJ6ZNVv5NJloTEQYk7bWjEieHd2v 5TZEx9HfM9obrvVH3AB089s9cwfejejmleFtT6AcOM/VqkeUcgmSYIPWeg/h4YGcpVGE +yU9Am+Xs25wbAj7CiuJMc3SW3vSR3UunZ/Nx29/9ZAohh+Gi1qsaEjMIeqOn+cSOwda XLBg== X-Gm-Message-State: AOJu0YyrphlIm6KX7Xz5+AZyBxhS0WaNz9nHD/hL5MU2Os7G55L+pO2t hLwfIbP06ST89CGGvbyAKjE0B8kKhsItKsMGWIlhgJxiKjs52zIeyfMuDg== X-Received: by 2002:a05:600c:4446:b0:42c:a580:71cf with SMTP id 5b1f17b1804b1-42cdb571ec0mr125073365e9.30.1726509581594; Mon, 16 Sep 2024 10:59:41 -0700 (PDT) Received: from localhost.localdomain ([2a02:6b6f:f685:d300:49f8:c711:61f8:d69e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42da22d7da7sm82724555e9.15.2024.09.16.10.59.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2024 10:59:41 -0700 (PDT) From: =?utf-8?b?RmlsaXAgTWHFoWnEhw==?= To: ffmpeg-devel@ffmpeg.org Date: Mon, 16 Sep 2024 18:57:52 +0100 Message-ID: <20240916175857.606-2-shoutplenty@gmail.com> X-Mailer: git-send-email 2.46.0.windows.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] av_get_frame_filename2 parameter int -> int64_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: =?utf-8?b?RmlsaXAgTWHFoWnEhw==?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: W/XyENNIKClR suggested fix for ticket 11194; see ticket for more info. i haven't been able to test this since i don't have any build tools installed, but decided to submit it since it seems to be a trivial change and easy to test --- libavformat/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index e9ded627ad..41acc71949 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -280,7 +280,7 @@ uint64_t ff_parse_ntp_time(uint64_t ntp_ts) return (sec * 1000000) + usec; } -int av_get_frame_filename2(char *buf, int buf_size, const char *path, int number, int flags) +int av_get_frame_filename2(char *buf, int buf_size, const char *path, int64_t number, int flags) { const char *p; char *q, buf1[20], c; @@ -338,7 +338,7 @@ fail: return -1; } -int av_get_frame_filename(char *buf, int buf_size, const char *path, int number) +int av_get_frame_filename(char *buf, int buf_size, const char *path, int64_t number) { return av_get_frame_filename2(buf, buf_size, path, number, 0); }