From a3fe03568b58f151a654a37e3dcdcae7ee40ad69 Mon Sep 17 00:00:00 2001 From: reimar Date: Thu, 21 Oct 2004 16:47:42 +0000 Subject: [PATCH] crash with Y8 colourspace fixed git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13730 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_spp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmpcodecs/vf_spp.c b/libmpcodecs/vf_spp.c index 6cc147b8f6..05ab104b58 100644 --- a/libmpcodecs/vf_spp.c +++ b/libmpcodecs/vf_spp.c @@ -384,6 +384,7 @@ static void filter(struct vf_priv_s *p, uint8_t *dst, uint8_t *src, int dst_stri DCTELEM *block = (DCTELEM *)block_align; DCTELEM *block2= (DCTELEM *)(block_align+16); + if (!src || !dst) return; // HACK avoid crash for Y8 colourspace for(y=0; ysrc + index, src + y*src_stride, width);