Commit b09ec0b8 authored by siretart's avatar siretart

Fix printf format warnings

patch by Eli Friedman <eli dot friedman at gmail dot com>


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23547 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8749e7d4
...@@ -363,7 +363,7 @@ ogg_packet (AVFormatContext * s, int *str, int *dstart, int *dsize, int64_t *fpo ...@@ -363,7 +363,7 @@ ogg_packet (AVFormatContext * s, int *str, int *dstart, int *dsize, int64_t *fpo
#endif #endif
if (os->granule == -1) 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; ogg->curidx = idx;
os->incomplete = 0; os->incomplete = 0;
......
...@@ -236,7 +236,7 @@ parse_packed_headers(const uint8_t * packed_headers, ...@@ -236,7 +236,7 @@ parse_packed_headers(const uint8_t * packed_headers,
if (packed_headers_end - packed_headers < 9) { if (packed_headers_end - packed_headers < 9) {
av_log(codec, AV_LOG_ERROR, av_log(codec, AV_LOG_ERROR,
"Invalid %d byte packed header.", "Invalid %td byte packed header.",
packed_headers_end - packed_headers); packed_headers_end - packed_headers);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
...@@ -258,7 +258,7 @@ parse_packed_headers(const uint8_t * packed_headers, ...@@ -258,7 +258,7 @@ parse_packed_headers(const uint8_t * packed_headers,
if (packed_headers_end - packed_headers != length || if (packed_headers_end - packed_headers != length ||
length1 > length || length2 > length - length1) { length1 > length || length2 > length - length1) {
av_log(codec, AV_LOG_ERROR, 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); length2, packed_headers_end - packed_headers, length);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment