avcodec/dnxhddec: fix -Wformat warning raised by DJGPP
authorJames Almer <jamrial@gmail.com>
Tue, 11 Apr 2017 15:08:45 +0000 (12:08 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 11 Apr 2017 15:31:14 +0000 (12:31 -0300)
FF_ARRAY_ELEMS returns a size_t value.

Reviewed-by: ubitux
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/dnxhddec.c

index cc24ebd..40d41f9 100644 (file)
@@ -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,
 
     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;
     }
 
         return AVERROR_INVALIDDATA;
     }