[FFmpeg-cvslog] avfilter/graphmonitor: use SIZE_SPECIFIER for size_t type

Peter Ross git at videolan.org
Wed Nov 21 14:30:05 EET 2018


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Mon Nov 19 20:03:39 2018 +1100| [1ee4b4006be6c34a0dfec367a60942b85d13238e] | committer: Peter Ross

avfilter/graphmonitor: use SIZE_SPECIFIER for size_t type

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ee4b4006be6c34a0dfec367a60942b85d13238e
---

 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..c001835364 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, "%"SIZE_SPECIFIER, frames);
         drawtext(out, xpos, ypos, buffer, frames > 0 ? frames >= 10 ? frames >= 50 ? s->red : s->yellow : s->green : s->white);
         xpos += strlen(buffer) * 8;
     }



More information about the ffmpeg-cvslog mailing list