From 928e7c60cc5f220e931df51392b5577b253ffa23 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 31 Jan 2022 22:56:47 -0300 Subject: [PATCH] avformat/demux: print skip_samples and discard_padding as unsigned values in debug log It's the type they should be interpreted as in the AV_PKT_DATA_SKIP_SAMPLES side data. Signed-off-by: James Almer --- libavformat/demux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/demux.c b/libavformat/demux.c index 09d539af68..4509015847 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -1360,7 +1360,8 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt) if (p) { AV_WL32(p, sti->skip_samples); AV_WL32(p + 4, discard_padding); - av_log(s, AV_LOG_DEBUG, "demuxer injecting skip %d / discard %d\n", sti->skip_samples, discard_padding); + av_log(s, AV_LOG_DEBUG, "demuxer injecting skip %u / discard %u\n", + (unsigned)sti->skip_samples, (unsigned)discard_padding); } sti->skip_samples = 0; }