aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-03-09 14:00:22 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-03-09 14:00:22 +0100
commit144ef773c7140d1ea49d54e65e989f4edcfe9958 (patch)
tree651757787a5424a0dad0a4a0df984cdb8aafbd6a /libavformat
parent953b8c5a43ef3f48cc0464857efffe8fdc769b3d (diff)
downloadffmpeg-144ef773c7140d1ea49d54e65e989f4edcfe9958.tar.gz
Use correct msvc type specifiers for ptrdiff_t and size_t.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/http.c2
-rw-r--r--libavformat/mov.c4
-rw-r--r--libavformat/mpjpegdec.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index ae77b646f7..f18d9e28a1 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -370,7 +370,7 @@ static int http_write_reply(URLContext* h, int status_code)
message_len = snprintf(message, sizeof(message),
"HTTP/1.1 %03d %s\r\n"
"Content-Type: %s\r\n"
- "Content-Length: %zu\r\n"
+ "Content-Length: %"SIZE_SPECIFIER"\r\n"
"\r\n"
"%03d %s\r\n",
reply_code,
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 752bc129a6..4f446ba8cd 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4209,7 +4209,7 @@ static int mov_seek_auxiliary_info(AVFormatContext *s, MOVStreamContext *sc)
auxiliary_info_seek_offset = sc->cenc.auxiliary_info_default_size * sc->current_sample;
} else if (sc->cenc.auxiliary_info_sizes) {
if (sc->current_sample > sc->cenc.auxiliary_info_sizes_count) {
- av_log(s, AV_LOG_ERROR, "current sample %d greater than the number of auxiliary info sample sizes %zu\n",
+ av_log(s, AV_LOG_ERROR, "current sample %d greater than the number of auxiliary info sample sizes %"SIZE_SPECIFIER"\n",
sc->current_sample, sc->cenc.auxiliary_info_sizes_count);
return AVERROR_INVALIDDATA;
}
@@ -4220,7 +4220,7 @@ static int mov_seek_auxiliary_info(AVFormatContext *s, MOVStreamContext *sc)
}
if (auxiliary_info_seek_offset > sc->cenc.auxiliary_info_end - sc->cenc.auxiliary_info) {
- av_log(s, AV_LOG_ERROR, "auxiliary info offset %zu greater than auxiliary info size %zu\n",
+ av_log(s, AV_LOG_ERROR, "auxiliary info offset %"SIZE_SPECIFIER" greater than auxiliary info size %"SIZE_SPECIFIER"\n",
auxiliary_info_seek_offset, (size_t)(sc->cenc.auxiliary_info_end - sc->cenc.auxiliary_info));
return AVERROR_INVALIDDATA;
}
diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c
index 4c2a46ba74..6f85e5620f 100644
--- a/libavformat/mpjpegdec.c
+++ b/libavformat/mpjpegdec.c
@@ -201,7 +201,7 @@ static int parse_multipart_header(AVIOContext *pb,
if (log_ctx)
av_log(log_ctx,
AV_LOG_ERROR,
- "Expected boundary '%s' not found, instead found a line of %zu bytes\n",
+ "Expected boundary '%s' not found, instead found a line of %"SIZE_SPECIFIER" bytes\n",
expected_boundary,
strlen(line));