diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-04-01 18:19:59 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-04-02 00:27:22 +0200 |
commit | cba4e6062a02d5bf684e13a770be88aa1fec717e (patch) | |
tree | cf0ecd5a96c69be36b166d68356c64f637893fbd /libavcodec/h264_refs.c | |
parent | 80035db88c1f7cc23110c7472a2b13a4d2d8b73e (diff) | |
download | ffmpeg-cba4e6062a02d5bf684e13a770be88aa1fec717e.tar.gz |
More correct printf format specifiers
This avoids compiler warnings about argument and specifier type mismatch.
Diffstat (limited to 'libavcodec/h264_refs.c')
-rw-r--r-- | libavcodec/h264_refs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index 332866a2db..ffe1fcc0b0 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -25,6 +25,8 @@ * @author Michael Niedermayer <michaelni@gmx.at> */ +#include <inttypes.h> + #include "internal.h" #include "avcodec.h" #include "h264.h" @@ -497,7 +499,7 @@ static void print_short_term(H264Context *h) av_log(h->avctx, AV_LOG_DEBUG, "short term list:\n"); for (i = 0; i < h->short_ref_count; i++) { H264Picture *pic = h->short_ref[i]; - av_log(h->avctx, AV_LOG_DEBUG, "%d fn:%d poc:%d %p\n", + av_log(h->avctx, AV_LOG_DEBUG, "%"PRIu32" fn:%d poc:%d %p\n", i, pic->frame_num, pic->poc, pic->f.data[0]); } } @@ -514,7 +516,7 @@ static void print_long_term(H264Context *h) for (i = 0; i < 16; i++) { H264Picture *pic = h->long_ref[i]; if (pic) { - av_log(h->avctx, AV_LOG_DEBUG, "%d fn:%d poc:%d %p\n", + av_log(h->avctx, AV_LOG_DEBUG, "%"PRIu32" fn:%d poc:%d %p\n", i, pic->frame_num, pic->poc, pic->f.data[0]); } } |