[Mplayer-cvslog] CVS: main/postproc swscale.c,1.128,1.129
Michael Niedermayer CVS
michael at mplayerhq.hu
Sat Sep 27 01:37:53 CEST 2003
Update of /cvsroot/mplayer/main/postproc
In directory mail:/var/tmp.root/cvs-serv533
Modified Files:
swscale.c
Log Message:
srcSliceY % 4 != 0 fix
Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -r1.128 -r1.129
--- swscale.c 19 Jun 2003 21:28:56 -0000 1.128
+++ swscale.c 26 Sep 2003 23:37:28 -0000 1.129
@@ -1928,7 +1928,10 @@
int chrI= i*c->chrDstH / dstH;
int nextSlice= MAX(c->vLumFilterPos[i ] + c->vLumFilterSize - 1,
((c->vChrFilterPos[chrI] + c->vChrFilterSize - 1)<<c->chrSrcVSubSample));
- nextSlice&= ~3; // Slices start at boundaries which are divisable through 4
+ if(c->chrSrcVSubSample > 1)
+ nextSlice&= ~3; // Slices start at boundaries which are divisable through 4
+ else
+ nextSlice&= ~1; // Slices start at boundaries which are divisable through 2
if(c->vLumFilterPos[i ] + c->vLumBufSize < nextSlice)
c->vLumBufSize= nextSlice - c->vLumFilterPos[i ];
if(c->vChrFilterPos[chrI] + c->vChrBufSize < (nextSlice>>c->chrSrcVSubSample))
More information about the MPlayer-cvslog
mailing list