# HG changeset patch # User reimar # Date 1122544712 0 # Node ID e2bcf37fe028a69a88272b2ab3f95f5786c55c5b # Parent 833fa602eb76ea8877295c27ebc0f0795bc60ab2 Fix crash with large images diff -r 833fa602eb76 -r e2bcf37fe028 libmpcodecs/vf_dint.c --- a/libmpcodecs/vf_dint.c Thu Jul 28 09:56:33 2005 +0000 +++ b/libmpcodecs/vf_dint.c Thu Jul 28 09:58:32 2005 +0000 @@ -76,6 +76,7 @@ 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) {