diff options
author | Diego Biurrun <diego@biurrun.de> | 2014-03-10 18:35:59 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2014-03-11 16:13:41 +0400 |
commit | d92024f18fa3d69937cb2575f3a8bf973df02430 (patch) | |
tree | b3761f3c586916a0685e125bee9b9ed95b25aa25 /libavformat/lxfdec.c | |
parent | 7caf48e036583cd5833f5dc07ab14960dff25e04 (diff) |
lavf: more correct printf format specifiers
Diffstat (limited to 'libavformat/lxfdec.c')
-rw-r--r-- | libavformat/lxfdec.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c index 859fc71877..192d4b057c 100644 --- a/libavformat/lxfdec.c +++ b/libavformat/lxfdec.c @@ -19,6 +19,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <inttypes.h> + #include "libavutil/intreadwrite.h" #include "libavcodec/bytestream.h" #include "avformat.h" @@ -128,12 +130,12 @@ static int get_packet_header(AVFormatContext *s) version = bytestream_get_le32(&p); header_size = bytestream_get_le32(&p); if (version > 1) - avpriv_request_sample(s, "Unknown format version %i\n", version); + avpriv_request_sample(s, "Unknown format version %"PRIu32"\n", version); if (header_size < (version ? 72 : 60) || header_size > LXF_MAX_PACKET_HEADER_SIZE || (header_size & 3)) { - av_log(s, AV_LOG_ERROR, "Invalid header size 0x%x\n", header_size); + av_log(s, AV_LOG_ERROR, "Invalid header size 0x%"PRIx32"\n", header_size); return AVERROR_INVALIDDATA; } @@ -299,7 +301,8 @@ static int lxf_read_packet(AVFormatContext *s, AVPacket *pkt) stream = lxf->packet_type; if (stream > 1) { - av_log(s, AV_LOG_WARNING, "got packet with illegal stream index %u\n", stream); + av_log(s, AV_LOG_WARNING, + "got packet with illegal stream index %"PRIu32"\n", stream); return AVERROR(EAGAIN); } |