allocate 2 lines more memory - to avoid some sig11

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5525 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-04-07 21:36:39 +00:00
parent 5679435133
commit 9d80fea731
1 changed files with 1 additions and 1 deletions

View File

@ -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;