aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-11-02 01:55:40 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-11-02 01:55:40 +0100
commit5a51ca2da7b76cad2a86476590c18b26a98eafbe (patch)
tree6c5e8d0ea8977dd1373f06cd6dfb1f41a161e447
parent2b09a3ad19520bc3ae9adcff5506ac1f628406b4 (diff)
downloadffmpeg-5a51ca2da7b76cad2a86476590c18b26a98eafbe.tar.gz
lavc/hapenc: Use the correct printf length modifier for size_t arguments.
Fixes the following warning: libavcodec/hapenc.c:122:20: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘size_t’ [-Wformat] Based on a patch by Diego Biurrun.
-rw-r--r--libavcodec/hapenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hapenc.c b/libavcodec/hapenc.c
index cb5dcfac56..c09a639932 100644
--- a/libavcodec/hapenc.c
+++ b/libavcodec/hapenc.c
@@ -118,7 +118,7 @@ static int hap_compress_frame(AVCodecContext *avctx, uint8_t *dst)
/* If there is no gain from snappy, just use the raw texture. */
if (chunk->compressed_size >= chunk->uncompressed_size) {
av_log(avctx, AV_LOG_VERBOSE,
- "Snappy buffer bigger than uncompressed (%lu >= %lu bytes).\n",
+ "Snappy buffer bigger than uncompressed (%"SIZE_SPECIFIER" >= %"SIZE_SPECIFIER" bytes).\n",
chunk->compressed_size, chunk->uncompressed_size);
memcpy(chunk_dst, chunk_src, chunk->uncompressed_size);
chunk->compressor = HAP_COMP_NONE;