From 461628c6a8c2508490596194e0def2d2382574ac Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 9 Jun 2010 08:59:41 +0000 Subject: [PATCH] Fix printf format warnings patch by Eli Friedman Originally committed as revision 23547 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/oggdec.c | 2 +- libavformat/rtpdec_xiph.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/oggdec.c b/libavformat/oggdec.c index 3161e68c6c..4c9a43a1cf 100644 --- a/libavformat/oggdec.c +++ b/libavformat/oggdec.c @@ -363,7 +363,7 @@ ogg_packet (AVFormatContext * s, int *str, int *dstart, int *dsize, int64_t *fpo #endif if (os->granule == -1) - av_log(s, AV_LOG_WARNING, "Page at %lld is missing granule\n", os->page_pos); + av_log(s, AV_LOG_WARNING, "Page at %"PRId64" is missing granule\n", os->page_pos); ogg->curidx = idx; os->incomplete = 0; diff --git a/libavformat/rtpdec_xiph.c b/libavformat/rtpdec_xiph.c index 9a1f33d531..34704a2aec 100644 --- a/libavformat/rtpdec_xiph.c +++ b/libavformat/rtpdec_xiph.c @@ -236,7 +236,7 @@ parse_packed_headers(const uint8_t * packed_headers, if (packed_headers_end - packed_headers < 9) { av_log(codec, AV_LOG_ERROR, - "Invalid %d byte packed header.", + "Invalid %td byte packed header.", packed_headers_end - packed_headers); return AVERROR_INVALIDDATA; } @@ -258,7 +258,7 @@ parse_packed_headers(const uint8_t * packed_headers, if (packed_headers_end - packed_headers != length || length1 > length || length2 > length - length1) { av_log(codec, AV_LOG_ERROR, - "Bad packed header lengths (%d,%d,%d,%d)\n", length1, + "Bad packed header lengths (%d,%d,%td,%d)\n", length1, length2, packed_headers_end - packed_headers, length); return AVERROR_INVALIDDATA; }