changeset 16125:e2bcf37fe028

Fix crash with large images
author reimar
date Thu, 28 Jul 2005 09:58:32 +0000
parents 833fa602eb76
children 1047fc6e4246
files libmpcodecs/vf_dint.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)
     {