From 2ff7d10c307bc36d56f7c28e4b7675144b0a7546 Mon Sep 17 00:00:00 2001 From: James Almer Date: Wed, 17 Jul 2024 22:57:46 -0300 Subject: [PATCH] fftools/ffmpeg_filter: use the correct specifier for crop arguments Signed-off-by: James Almer --- fftools/ffmpeg_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fftools/ffmpeg_filter.c b/fftools/ffmpeg_filter.c index 097bd2ed48..b562e8417c 100644 --- a/fftools/ffmpeg_filter.c +++ b/fftools/ffmpeg_filter.c @@ -1703,7 +1703,7 @@ static int configure_input_video_filter(FilterGraph *fg, AVFilterGraph *graph, if ((ifp->opts.flags & IFILTER_FLAG_CROP)) { char crop_buf[64]; - snprintf(crop_buf, sizeof(crop_buf), "w=iw-%d-%d:h=ih-%d-%d:x=%d:y=%d", + snprintf(crop_buf, sizeof(crop_buf), "w=iw-%u-%u:h=ih-%u-%u:x=%u:y=%u", ifp->opts.crop_left, ifp->opts.crop_right, ifp->opts.crop_top, ifp->opts.crop_bottom, ifp->opts.crop_left, ifp->opts.crop_top);