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
This commit is contained in:
reimar 2010-01-08 19:21:14 +00:00
parent 83da389dce
commit 17da96da5b
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}