aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-07-17 22:57:46 -0300
committerJames Almer <jamrial@gmail.com>2024-07-18 23:27:20 -0300
commit2ff7d10c307bc36d56f7c28e4b7675144b0a7546 (patch)
tree5b7024bb0929ce00a0ac445df0c18ec4689bc95f
parent90e28331c7887b83d7c508bea71735ae12dad177 (diff)
downloadffmpeg-2ff7d10c307bc36d56f7c28e4b7675144b0a7546.tar.gz
fftools/ffmpeg_filter: use the correct specifier for crop arguments
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--fftools/ffmpeg_filter.c2
1 files changed, 1 insertions, 1 deletions
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);