Mercurial > mplayer.hg
changeset 10952:b1c40065bcff
srcSliceY % 4 != 0 fix
author | michael |
---|---|
date | Fri, 26 Sep 2003 23:37:28 +0000 |
parents | fa75c0b623fe |
children | 70a974306f9b |
files | postproc/swscale.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/postproc/swscale.c Fri Sep 26 22:51:38 2003 +0000 +++ b/postproc/swscale.c Fri Sep 26 23:37:28 2003 +0000 @@ -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))