summaryrefslogtreecommitdiff
path: root/libavformat/wtv.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/wtv.c
parent7caf48e036583cd5833f5dc07ab14960dff25e04 (diff)
lavf: more correct printf format specifiers
Diffstat (limited to 'libavformat/wtv.c')
-rw-r--r--libavformat/wtv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/wtv.c b/libavformat/wtv.c
index 0c24fd7eb9..c85f374499 100644
--- a/libavformat/wtv.c
+++ b/libavformat/wtv.c
@@ -25,6 +25,8 @@
* @author Peter Ross <pross@xvid.org>
*/
+#include <inttypes.h>
+
#include "libavutil/channel_layout.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/intfloat.h"
@@ -37,7 +39,7 @@
/* Macros for formating GUIDs */
#define PRI_PRETTY_GUID \
- "%08x-%04x-%04x-%02x%02x%02x%02x%02x%02x%02x%02x"
+ "%08"PRIx32"-%04"PRIx16"-%04"PRIx16"-%02x%02x%02x%02x%02x%02x%02x%02x"
#define ARG_PRETTY_GUID(g) \
AV_RL32(g),AV_RL16(g+4),AV_RL16(g+6),g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]
#define LEN_PRETTY_GUID 34
@@ -501,7 +503,7 @@ static void get_tag(AVFormatContext *s, AVIOContext *pb, const char *key, int ty
return;
if (type == 0 && length == 4) {
- snprintf(buf, buf_size, "%"PRIi32, avio_rl32(pb));
+ snprintf(buf, buf_size, "%u", avio_rl32(pb));
} else if (type == 1) {
avio_get_str16le(pb, length, buf, buf_size);
if (!strlen(buf)) {