[FFmpeg-devel] [PATCH] avfilter/graphmonitor: use %z when printing size_t

Peter Ross pross at xvid.org
Mon Nov 19 13:26:38 EET 2018


---
32-bit target compiler warning.

 libavfilter/f_graphmonitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/f_graphmonitor.c b/libavfilter/f_graphmonitor.c
index 7052c84d9b..3cb8f73dd3 100644
--- a/libavfilter/f_graphmonitor.c
+++ b/libavfilter/f_graphmonitor.c
@@ -211,7 +211,7 @@ static void draw_items(AVFilterContext *ctx, AVFrame *out,
         snprintf(buffer, sizeof(buffer)-1, " | queue: ");
         drawtext(out, xpos, ypos, buffer, s->white);
         xpos += strlen(buffer) * 8;
-        snprintf(buffer, sizeof(buffer)-1, "%"PRId64, frames);
+        snprintf(buffer, sizeof(buffer)-1, "%zd", frames);
         drawtext(out, xpos, ypos, buffer, frames > 0 ? frames >= 10 ? frames >= 50 ? s->red : s->yellow : s->green : s->white);
         xpos += strlen(buffer) * 8;
     }
-- 
2.17.1

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20181119/43b60be0/attachment.sig>


More information about the ffmpeg-devel mailing list