Mercurial > mplayer.hg
changeset 13729:045dbaccaccc
crash with Y8 colourspace fixed
author | reimar |
---|---|
date | Thu, 21 Oct 2004 16:47:42 +0000 |
parents | 9534e44139e9 |
children | a45e901cc870 |
files | libmpcodecs/vf_spp.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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);