summaryrefslogtreecommitdiff
path: root/libavfilter/vf_mpdecimate.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/vf_mpdecimate.c')
-rw-r--r--libavfilter/vf_mpdecimate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_mpdecimate.c b/libavfilter/vf_mpdecimate.c
index 2e386f7df6..45d510ba40 100644
--- a/libavfilter/vf_mpdecimate.c
+++ b/libavfilter/vf_mpdecimate.c
@@ -122,7 +122,8 @@ static int decimate_frame(AVFilterContext *ctx,
int hsub = plane == 1 || plane == 2 ? decimate->hsub : 0;
if (diff_planes(ctx,
cur->data[plane], ref->data[plane], ref->linesize[plane],
- ref->width>>hsub, ref->height>>vsub))
+ FF_CEIL_RSHIFT(ref->width, hsub),
+ FF_CEIL_RSHIFT(ref->height, vsub)))
return 0;
}