Skip to content

Commit

Permalink
avcodec/dnxhddec: fix -Wformat warning raised by DJGPP
Browse files Browse the repository at this point in the history
FF_ARRAY_ELEMS returns a size_t value.

Reviewed-by: ubitux
Signed-off-by: James Almer <[email protected]>
  • Loading branch information
jamrial committed Apr 11, 2017
1 parent da2fd3f commit 2b4cc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/dnxhddec.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,

if (ctx->mb_height > FF_ARRAY_ELEMS(ctx->mb_scan_index)) {
av_log(ctx->avctx, AV_LOG_ERROR,
"mb_height too big (%d > %"PRIu64").\n", ctx->mb_height, FF_ARRAY_ELEMS(ctx->mb_scan_index));
"mb_height too big (%d > %"SIZE_SPECIFIER").\n", ctx->mb_height, FF_ARRAY_ELEMS(ctx->mb_scan_index));
return AVERROR_INVALIDDATA;
}

Expand Down

0 comments on commit 2b4cc8d

Please sign in to comment.