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 5EC90479D9 for ; Fri, 26 Apr 2024 17:32:25 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7391468D3C1; Fri, 26 Apr 2024 20:32:23 +0300 (EEST) Received: from mail-4328.protonmail.ch (mail-4328.protonmail.ch [185.70.43.28]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2832168D1B3 for ; Fri, 26 Apr 2024 20:32:17 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marcusspencer.xyz; s=protonmail3; t=1714152736; x=1714411936; bh=bEFeh0Npcm+ETO79vXf5lAkI7v05LMqMLGQE0bIJH1o=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:From:To: Cc:Date:Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=EnhS+wwJHXljJrKDrCDiwPZW3Kr3PZTLh1OiGbvzTvkrDckf3corQYHPz2Ho2xWjG wsCUvWLi3SYjL74bf4en5uGIfump95TJNdFAl+dn5UDMhjOvjnqtRJT6z51PFxaZv7 u1vreMe65T3JJTxiA7mNCroJqRhYzXawXnnZD535XDy29+4RwJrkuxOeJjFP/FNqE1 Bw2Kmny4PXmWBtag9z7AlqQ6PGmpPsbaeYWRpovGXvEvmWLV6VLSM17hENoMvb56lt j7XKy/4jDmu7l55Y2TioTaEJ+cqWBCbytHvUXSdWs/e2CEbZQ8kClivz6bH0PI+TQS cdQqc3royJSyg== X-Pm-Submission-Id: 4VR0Cf5NPkz4wwdW From: Marcus B Spencer To: ffmpeg-devel@ffmpeg.org Date: Fri, 26 Apr 2024 12:30:57 -0500 Message-ID: <20240426173057.259957-1-marcus@marcusspencer.xyz> X-Mailer: git-send-email 2.44.0 In-Reply-To: References: MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] avcodec/bsf/noise: fix av_log format specifier 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: Marcus B Spencer 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: Replace the "%d" specifier corresponding to the 2nd argument of av_log starting on line 176 with "%u", due to the fact that the 2nd argument is an unsigned int. Without this patch, if the second argument exceeded the maximum value of an int, the behavior would be undefined. Signed-off-by: Marcus B Spencer --- libavcodec/bsf/noise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/bsf/noise.c b/libavcodec/bsf/noise.c index a622855717..d36be5fab4 100644 --- a/libavcodec/bsf/noise.c +++ b/libavcodec/bsf/noise.c @@ -173,7 +173,7 @@ static int noise(AVBSFContext *ctx, AVPacket *pkt) drop = !(s->state % s->dropamount); } - av_log(ctx, AV_LOG_VERBOSE, "Stream #%d packet %d pts %"PRId64" - amount %d drop %d\n", + av_log(ctx, AV_LOG_VERBOSE, "Stream #%d packet %u pts %"PRId64" - amount %d drop %d\n", pkt->stream_index, (unsigned int)s->var_values[VAR_N], pkt->pts, amount, drop); if (drop) { -- 2.44.0 _______________________________________________ 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".