mirror of https://github.com/mpv-player/mpv
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:
parent
cf78c83649
commit
b266dac93c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue