mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +01:00
crash with Y8 colourspace fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13730 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2ebdd3f110
commit
a3fe03568b
@ -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; y<height; y++){
|
||||
int index= 8 + 8*stride + y*stride;
|
||||
memcpy(p->src + index, src + y*src_stride, width);
|
||||
|
Loading…
Reference in New Issue
Block a user