summaryrefslogtreecommitdiff
path: root/libavformat/smacker.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-03-10 15:35:59 +0100
committerDiego Biurrun <diego@biurrun.de>2014-03-11 13:13:41 +0100
commitd92024f18fa3d69937cb2575f3a8bf973df02430 (patch)
treeb3761f3c586916a0685e125bee9b9ed95b25aa25 /libavformat/smacker.c
parent7caf48e036583cd5833f5dc07ab14960dff25e04 (diff)
lavf: more correct printf format specifiers
Diffstat (limited to 'libavformat/smacker.c')
-rw-r--r--libavformat/smacker.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libavformat/smacker.c b/libavformat/smacker.c
index 5af5e50784..2fa531bf64 100644
--- a/libavformat/smacker.c
+++ b/libavformat/smacker.c
@@ -23,6 +23,8 @@
* Based on http://wiki.multimedia.cx/index.php?title=Smacker
*/
+#include <inttypes.h>
+
#include "libavutil/bswap.h"
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
@@ -139,7 +141,7 @@ static int smacker_read_header(AVFormatContext *s)
smk->pad = avio_rl32(pb);
/* setup data */
if(smk->frames > 0xFFFFFF) {
- av_log(s, AV_LOG_ERROR, "Too many frames: %i\n", smk->frames);
+ av_log(s, AV_LOG_ERROR, "Too many frames: %"PRIu32"\n", smk->frames);
return -1;
}
smk->frm_size = av_malloc(smk->frames * 4);
@@ -214,7 +216,9 @@ static int smacker_read_header(AVFormatContext *s)
FF_INPUT_BUFFER_PADDING_SIZE);
st->codec->extradata_size = smk->treesize + 16;
if(!st->codec->extradata){
- av_log(s, AV_LOG_ERROR, "Cannot allocate %i bytes of extradata\n", smk->treesize + 16);
+ av_log(s, AV_LOG_ERROR,
+ "Cannot allocate %"PRIu32" bytes of extradata\n",
+ smk->treesize + 16);
av_free(smk->frm_size);
av_free(smk->frm_flags);
return -1;