Fix crash with large images

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16126 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-07-28 09:58:32 +00:00
parent cf78c83649
commit b266dac93c
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ static int put_image (struct vf_instance_s* vf, mp_image_t *mpi)
unsigned char *cur0, *prv0;
register unsigned char *cur, *prv;
if (rowsize > MAXROWSIZE) rowsize = MAXROWSIZE;
// check if nothing to do
if (mpi->imgfmt == vf->priv->imgfmt)
{