changeset 5524:a66cad52c339

allocate 2 lines more memory - to avoid some sig11
author arpi
date Sun, 07 Apr 2002 21:36:39 +0000
parents 8d55957fa018
children 80679a6ccb4e
files libmpcodecs/vf.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf.c	Sun Apr 07 21:33:42 2002 +0000
+++ b/libmpcodecs/vf.c	Sun Apr 07 21:36:39 2002 +0000
@@ -84,7 +84,7 @@
 	
         if(!(mpi->flags&MP_IMGFLAG_DIRECT)){
           // non-direct and not yet allocaed image. allocate it!
-	  mpi->planes[0]=memalign(64, mpi->bpp*mpi->width*mpi->height/8);
+	  mpi->planes[0]=memalign(64, mpi->bpp*mpi->width*(mpi->height+2)/8);
 	  if(mpi->flags&MP_IMGFLAG_PLANAR){
 	      // YV12/I420. feel free to add other planar formats here...
 	      if(!mpi->stride[0]) mpi->stride[0]=mpi->width;