Mercurial > mplayer.hg
diff libswscale/swscale_template.c @ 27699:31a477d77c57
Do not set src[1] to the palette, it is now in the context
author | vitor |
---|---|
date | Wed, 08 Oct 2008 17:48:23 +0000 |
parents | 235164d3b407 |
children | b6a499f72725 |
line wrap: on
line diff
--- a/libswscale/swscale_template.c Wed Oct 08 17:46:22 2008 +0000 +++ b/libswscale/swscale_template.c Wed Oct 08 17:48:23 2008 +0000 @@ -2926,7 +2926,7 @@ const int chrSrcSliceY= srcSliceY >> c->chrSrcVSubSample; const int chrSrcSliceH= -((-srcSliceH) >> c->chrSrcVSubSample); int lastDstY; - uint32_t *pal=NULL; + uint32_t *pal=c->pal_yuv; /* vars which will change and which we need to store back in the context */ int dstY= c->dstY; @@ -2936,7 +2936,6 @@ int lastInChrBuf= c->lastInChrBuf; if (isPacked(c->srcFormat)){ - pal= (uint32_t *)src[1]; src[0]= src[1]= src[2]= src[0];