aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/aadec.c
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-27 21:31:46 +0200
committerClément Bœsch <u@pkh.me>2017-03-29 14:49:29 +0200
commit549045254c4614d5d61b5c36e340171a6914d57c (patch)
tree0d2d80d1ca0c3de65f45da198e8ab09921da7fe4 /libavformat/aadec.c
parent1473afac5d11a0a90810b6cd8107d63640c9fd38 (diff)
downloadffmpeg-549045254c4614d5d61b5c36e340171a6914d57c.tar.gz
Fix all -Wformat warnings raised by DJGPP
Diffstat (limited to 'libavformat/aadec.c')
-rw-r--r--libavformat/aadec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/aadec.c b/libavformat/aadec.c
index 39dea40b80..8d39b1d9ba 100644
--- a/libavformat/aadec.c
+++ b/libavformat/aadec.c
@@ -112,7 +112,8 @@ static int aa_read_header(AVFormatContext *s)
header_seed = atoi(val);
} else if (!strcmp(key, "HeaderKey")) { // this looks like "1234567890 1234567890 1234567890 1234567890"
av_log(s, AV_LOG_DEBUG, "HeaderKey is <%s>\n", val);
- sscanf(val, "%u%u%u%u", &header_key_part[0], &header_key_part[1], &header_key_part[2], &header_key_part[3]);
+ sscanf(val, "%"SCNu32"%"SCNu32"%"SCNu32"%"SCNu32,
+ &header_key_part[0], &header_key_part[1], &header_key_part[2], &header_key_part[3]);
for (idx = 0; idx < 4; idx++) {
AV_WB32(&header_key[idx * 4], header_key_part[idx]); // convert each part to BE!
}