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 D20654BE48 for ; Wed, 17 Jul 2024 11:27:56 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id E6DF868D98F; Wed, 17 Jul 2024 14:27:53 +0300 (EEST) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D5B3D68D92E for ; Wed, 17 Jul 2024 14:27:47 +0300 (EEST) Received: by mail.gandi.net (Postfix) with ESMTPSA id EE7B9240005 for ; Wed, 17 Jul 2024 11:27:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=niedermayer.cc; s=gm1; t=1721215667; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=jZtuZzaJo14syPRnA75whQ0rRRQALmE9Gk0bngFDZGY=; b=gbQcdvCT63tWwuU8tLLdLHwQ+JbWKRiit0tx55BYxRrmgOI7Z1NPZQXdRhWa3M29myyNex 1DZrGiy5GozxIK6FGKoQSHV8s6KE6VLNsvbclw/SrF9Rs6oouMIiUBAb14khmQQmWkW1GO y1Tppfg/07Moh1shKtHmeA3fmw1eA2oS3+/z23BGGNi5CHC04Mq3eY2FLmm5mTpfyT0xei zhgeMOSCbZ8OW/T2EgK7Ie351hbiaYM6Zg6VKfujDpaJsIZoNoOFVI05Q4PXszfn5U1ID4 Jjf9OjFVlo4ARGQXvcuhISjwMmtEsThP/5UyRhkU+xaZS11PLEWDqQPUPuuxBQ== From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Wed, 17 Jul 2024 13:27:41 +0200 Message-ID: <20240717112745.1624968-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-GND-Sasl: michael@niedermayer.cc Subject: [FFmpeg-devel] [PATCH 1/5] avutil/timecode: Use a 64bit framenum internally 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 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: Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself Fixes: 68550/clusterfuzz-testcase-minimized-ffmpeg_dem_MXF_fuzzer-6424065930756096 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libavutil/timecode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/timecode.c b/libavutil/timecode.c index bd879bd3cc0..f40a10eb385 100644 --- a/libavutil/timecode.c +++ b/libavutil/timecode.c @@ -100,11 +100,12 @@ uint32_t av_timecode_get_smpte(AVRational rate, int drop, int hh, int mm, int ss return tc; } -char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) +char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum_arg) { int fps = tc->fps; int drop = tc->flags & AV_TIMECODE_FLAG_DROPFRAME; int hh, mm, ss, ff, ff_len, neg = 0; + int64_t framenum = framenum_arg; framenum += tc->start; if (drop) -- 2.45.2 _______________________________________________ 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".