From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 6862D4B712 for ; Fri, 22 Aug 2025 01:05:51 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 7AB8E6801F9; Fri, 22 Aug 2025 04:05:46 +0300 (EEST) Received: from b0414b60bf0b (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id B8AF26800E1 for ; Fri, 22 Aug 2025 04:05:45 +0300 (EEST) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Subject: [FFmpeg-devel] =?utf-8?q?=5BPATCH=5D_mov_demuxer=3A_use_int64=5F?= =?utf-8?q?t_for_next=5Fts_=28PR_=2320313=29?= 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: , From: muiz2 via ffmpeg-devel Reply-To: FFmpeg development discussions and patches Cc: muiz2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Message-Id: <20250822010546.7AB8E6801F9@ffbox0-bg.ffmpeg.org> Date: Fri, 22 Aug 2025 04:05:46 +0300 (EEST) Archived-At: List-Archive: List-Post: PR #20313 opened by muiz2 URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20313 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20313.patch d1b96c380826c505a8c7e655b5ad4fdb0c2de167 fixes some hevc seeking issues but will int overflow when timestamp is >int_max. >From eddaae989ef0fe6897274bb0662a42b43fd886dd Mon Sep 17 00:00:00 2001 From: Muiz Yusuff Date: Fri, 22 Aug 2025 01:01:48 +0000 Subject: [PATCH] mov demuxer: use int64_t for next_ts d1b96c380826c505a8c7e655b5ad4fdb0c2de167 fixes some hevc seeking issues but will int overflow when timestamp is >int_max. --- libavformat/mov.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index e9a582e5aa..ac0c01a67f 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -11299,7 +11299,8 @@ static int mov_seek_stream(AVFormatContext *s, AVStream *st, int64_t timestamp, { MOVStreamContext *sc = st->priv_data; FFStream *const sti = ffstream(st); - int sample, time_sample, ret, next_ts, requested_sample; + int sample, time_sample, ret, requested_sample; + int64_t next_ts; unsigned int i; // Here we consider timestamp to be PTS, hence try to offset it so that we -- 2.49.1 _______________________________________________ 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".