From 9d80fea731f7ce3f96c674b716117d11e9f1ea7b Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 7 Apr 2002 21:36:39 +0000 Subject: allocate 2 lines more memory - to avoid some sig11 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5525 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c index 2bcf57f08f..c142c96d2d 100644 --- a/libmpcodecs/vf.c +++ b/libmpcodecs/vf.c @@ -84,7 +84,7 @@ mp_image_t* vf_get_image(vf_instance_t* vf, unsigned int outfmt, int mp_imgtype, 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; -- cgit v1.2.3