Mercurial > mplayer.hg
diff libmpcodecs/vf_spp.c @ 13729:045dbaccaccc
crash with Y8 colourspace fixed
author | reimar |
---|---|
date | Thu, 21 Oct 2004 16:47:42 +0000 |
parents | 821f464b4d90 |
children | 803be9a78854 |
line wrap: on
line diff
--- a/libmpcodecs/vf_spp.c Thu Oct 21 16:45:42 2004 +0000 +++ b/libmpcodecs/vf_spp.c Thu Oct 21 16:47:42 2004 +0000 @@ -384,6 +384,7 @@ DCTELEM *block = (DCTELEM *)block_align; DCTELEM *block2= (DCTELEM *)(block_align+16); + if (!src || !dst) return; // HACK avoid crash for Y8 colourspace for(y=0; y<height; y++){ int index= 8 + 8*stride + y*stride; memcpy(p->src + index, src + y*src_stride, width);