From 17da96da5b5b88addcb12878379d8db672147eda Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 8 Jan 2010 19:21:14 +0000 Subject: vf crop: do not generate 0-size slices, they are pointless and also confuse libswscale to assume the wrong slice order. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30245 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_crop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmpcodecs') 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); } -- cgit v1.2.3