summaryrefslogtreecommitdiff
path: root/libavcodec/dnxhddec.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 /libavcodec/dnxhddec.c
parent1473afac5d11a0a90810b6cd8107d63640c9fd38 (diff)
downloadffmpeg-549045254c4614d5d61b5c36e340171a6914d57c.tar.gz
Fix all -Wformat warnings raised by DJGPP
Diffstat (limited to 'libavcodec/dnxhddec.c')
-rw-r--r--libavcodec/dnxhddec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index 305fd52daa..f67763ef47 100644
--- a/libavcodec/dnxhddec.c
+++ b/libavcodec/dnxhddec.c
@@ -111,7 +111,7 @@ static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid, int bitdepth)
int index;
if ((index = ff_dnxhd_get_cid_table(cid)) < 0) {
- av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %d\n", cid);
+ av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %"PRIu32"\n", cid);
return AVERROR(ENOSYS);
}
if (ff_dnxhd_cid_table[index].bit_depth != bitdepth &&
@@ -120,7 +120,7 @@ static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid, int bitdepth)
return AVERROR_INVALIDDATA;
}
ctx->cid_table = &ff_dnxhd_cid_table[index];
- av_log(ctx->avctx, AV_LOG_VERBOSE, "Profile cid %d.\n", cid);
+ av_log(ctx->avctx, AV_LOG_VERBOSE, "Profile cid %"PRIu32".\n", cid);
ff_free_vlc(&ctx->ac_vlc);
ff_free_vlc(&ctx->dc_vlc);
@@ -316,10 +316,11 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
for (i = 0; i < ctx->mb_height; i++) {
ctx->mb_scan_index[i] = AV_RB32(buf + 0x170 + (i << 2));
- ff_dlog(ctx->avctx, "mb scan index %d, pos %d: %u\n", i, 0x170 + (i << 2), ctx->mb_scan_index[i]);
+ ff_dlog(ctx->avctx, "mb scan index %d, pos %d: %"PRIu32"\n",
+ i, 0x170 + (i << 2), ctx->mb_scan_index[i]);
if (buf_size - ctx->data_offset < ctx->mb_scan_index[i]) {
av_log(ctx->avctx, AV_LOG_ERROR,
- "invalid mb scan index (%u vs %u).\n",
+ "invalid mb scan index (%"PRIu32" vs %u).\n",
ctx->mb_scan_index[i], buf_size - ctx->data_offset);
return AVERROR_INVALIDDATA;
}