diff --git a/video/image_writer.c b/video/image_writer.c index 9d3087c461df9..81a696e5d3990 100644 --- a/video/image_writer.c +++ b/video/image_writer.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -502,7 +503,7 @@ static bool write_avif(struct image_writer_ctx *ctx, mp_image_t *image, MP_ERR(ctx, "Could not write trailer\n"); goto free_data; } - MP_DBG(ctx, "write_avif(): avio_size() = %ld\n", avio_size(avioctx)); + MP_DBG(ctx, "write_avif(): avio_size() = %"PRIi64"\n", avio_size(avioctx)); success = true;