mirror of https://github.com/mpv-player/mpv
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:
parent
83da389dce
commit
17da96da5b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue