[FFmpeg-devel] [PATCH 3/4] avformat/demux: print skip_samples and discard_padding as unsigned values in debug log
James Almer
jamrial at gmail.com
Tue Feb 1 03:56:47 EET 2022
It's the type they should be interpreted as in the AV_PKT_DATA_SKIP_SAMPLES side
data.
Signed-off-by: James Almer <jamrial at gmail.com>
---
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;
}
--
2.34.1
More information about the ffmpeg-devel
mailing list