[FFmpeg-cvslog] avformat/demux: print skip_samples and discard_padding as unsigned values in debug log

James Almer git at videolan.org
Sat Feb 5 14:46:26 EET 2022


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Mon Jan 31 22:56:47 2022 -0300| [928e7c60cc5f220e931df51392b5577b253ffa23] | committer: James Almer

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 <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=928e7c60cc5f220e931df51392b5577b253ffa23
---

 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;
         }



More information about the ffmpeg-cvslog mailing list