[MPlayer-dev-eng] [PATCH] vf_spp crash with Y800 colourspace
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Oct 20 21:57:29 CEST 2004
Hi,
vf_spp crashes when using Y800 colourspace (-vo gl:manyfmts will show
you this, which by the way is another issue, Y800 should never be
selected by default...).
The attached patch fixes. Although I'd consider that way a of doing it a
hack, it is at least a one-liner ;-).
Greetings,
Reimar Döffinger
-------------- next part --------------
--- libmpcodecs/vf_spp.c 2004-10-13 18:44:23.000000000 +0200
+++ libmpcodecs/vf_spp.c 2004-10-12 21:52:46.000000000 +0200
@@ -384,6 +384,7 @@
DCTELEM *block = (DCTELEM *)block_align;
DCTELEM *block2= (DCTELEM *)(block_align+16);
+ if (!src || !dst) return;
for(y=0; y<height; y++){
int index= 8 + 8*stride + y*stride;
memcpy(p->src + index, src + y*src_stride, width);
More information about the MPlayer-dev-eng
mailing list