From: Marcus B Spencer <marcus@marcusspencer.xyz> To: ffmpeg-devel@ffmpeg.org Cc: Marcus B Spencer <marcus@marcusspencer.xyz> Subject: [FFmpeg-devel] [PATCH] avcodec/bsf/noise: fix av_log format specifier Date: Fri, 26 Apr 2024 12:30:57 -0500 Message-ID: <20240426173057.259957-1-marcus@marcusspencer.xyz> (raw) In-Reply-To: <GEsTrbkwAg4ThBpZC59Y6dKoDT5SxHtHCV9fufDBtG7wKAAzjGbUmj_g4iRHVhbyIALZXHHUnns8Z2PpsEfGtzqwDjQi4NrAl8Zo9C4f0yU=@marcusspencer.xyz> 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 <marcus@marcusspencer.xyz> --- 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".
prev parent reply other threads:[~2024-04-26 17:32 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-04-25 23:02 [FFmpeg-devel] [PATCH] " Marcus B Spencer 2024-04-26 17:01 ` marcus 2024-04-26 17:30 ` Marcus B Spencer [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240426173057.259957-1-marcus@marcusspencer.xyz \ --to=marcus@marcusspencer.xyz \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git