--- vf_rectangle.c 2006-10-23 00:32:24.000000000 +0200 +++ ../../MPlayer-1.0rc1new/libmpcodecs/vf_rectangle.c 2006-11-28 14:42:30.000000000 +0100 @@ -82,11 +82,15 @@ mpi->w>>mpi->chroma_x_shift, mpi->h>>mpi->chroma_y_shift, dmpi->stride[2],mpi->stride[2]); } - + /* Draw the rectangle */ - mp_msg(MSGT_VFILTER,MSGL_INFO, "rectangle: -vf rectangle=%d:%d:%d:%d \n", vf->priv->w, vf->priv->h, vf->priv->x, vf->priv->y); + //dont draw rectangle if height or width is 0 + if (vf->priv->h == 0 || vf->priv->w == 0) { + return vf_next_put_image(vf, dmpi, pts); + } + if (vf->priv->x < 0) x = 0; else if (dmpi->width < vf->priv->x)