diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-03-10 15:35:59 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-03-11 13:13:41 +0100 |
commit | d92024f18fa3d69937cb2575f3a8bf973df02430 (patch) | |
tree | b3761f3c586916a0685e125bee9b9ed95b25aa25 /libavformat/bink.c | |
parent | 7caf48e036583cd5833f5dc07ab14960dff25e04 (diff) | |
download | ffmpeg-d92024f18fa3d69937cb2575f3a8bf973df02430.tar.gz |
lavf: more correct printf format specifiers
Diffstat (limited to 'libavformat/bink.c')
-rw-r--r-- | libavformat/bink.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libavformat/bink.c b/libavformat/bink.c index f093e7c3e2..4d2a735a38 100644 --- a/libavformat/bink.c +++ b/libavformat/bink.c @@ -28,6 +28,8 @@ * http://wiki.multimedia.cx/index.php?title=Bink_Container */ +#include <inttypes.h> + #include "libavutil/channel_layout.h" #include "libavutil/intreadwrite.h" #include "avformat.h" @@ -108,7 +110,9 @@ static int read_header(AVFormatContext *s) fps_num = avio_rl32(pb); fps_den = avio_rl32(pb); if (fps_num == 0 || fps_den == 0) { - av_log(s, AV_LOG_ERROR, "invalid header: invalid fps (%d/%d)\n", fps_num, fps_den); + av_log(s, AV_LOG_ERROR, + "invalid header: invalid fps (%"PRIu32"/%"PRIu32")\n", + fps_num, fps_den); return AVERROR(EIO); } avpriv_set_pts_info(vst, 64, fps_den, fps_num); @@ -126,7 +130,7 @@ static int read_header(AVFormatContext *s) if (bink->num_audio_tracks > BINK_MAX_AUDIO_TRACKS) { av_log(s, AV_LOG_ERROR, - "invalid header: more than "AV_STRINGIFY(BINK_MAX_AUDIO_TRACKS)" audio tracks (%d)\n", + "invalid header: more than "AV_STRINGIFY(BINK_MAX_AUDIO_TRACKS)" audio tracks (%"PRIu32")\n", bink->num_audio_tracks); return AVERROR(EIO); } @@ -221,7 +225,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt) uint32_t audio_size = avio_rl32(pb); if (audio_size > bink->remain_packet_size - 4) { av_log(s, AV_LOG_ERROR, - "frame %"PRId64": audio size in header (%u) > size of packet left (%u)\n", + "frame %"PRId64": audio size in header (%"PRIu32") > size of packet left (%"PRIu32")\n", bink->video_pts, audio_size, bink->remain_packet_size); return AVERROR(EIO); } |