diff options
-rw-r--r-- | libmpcodecs/vf_crop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/vf_crop.c b/libmpcodecs/vf_crop.c index 0fc1ac3c28..d28e6d93c3 100644 --- a/libmpcodecs/vf_crop.c +++ b/libmpcodecs/vf_crop.c @@ -132,7 +132,7 @@ static void draw_slice(struct vf_instance_s* vf, if (x+w > vf->priv->crop_w) w = vf->priv->crop_w-x; if (y+h > vf->priv->crop_h) h = vf->priv->crop_h-y; //mp_msg(MSGT_VFILTER, MSGL_V, "%d %d %d %d\n", w,h,x,y); - if ((w < 0) || (h < 0)) return; + if (w <= 0 || h <= 0) return; vf_next_draw_slice(vf,src2,stride,w,h,x,y); } |