[MPlayer-cvslog] r30245 - trunk/libmpcodecs/vf_crop.c
reimar
subversion at mplayerhq.hu
Fri Jan 8 20:21:14 CET 2010
Author: reimar
Date: Fri Jan 8 20:21:14 2010
New Revision: 30245
Log:
vf crop: do not generate 0-size slices, they are pointless and also confuse
libswscale to assume the wrong slice order.
Modified:
trunk/libmpcodecs/vf_crop.c
Modified: trunk/libmpcodecs/vf_crop.c
==============================================================================
--- trunk/libmpcodecs/vf_crop.c Fri Jan 8 19:56:39 2010 (r30244)
+++ trunk/libmpcodecs/vf_crop.c Fri Jan 8 20:21:14 2010 (r30245)
@@ -132,7 +132,7 @@ static void draw_slice(struct vf_instanc
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);
}
More information about the MPlayer-cvslog
mailing list