summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Arthur <bygrandao@gmail.com>2016-09-08 15:57:40 -0300
committerPedro Arthur <bygrandao@gmail.com>2016-09-16 11:25:28 -0300
commit8433d953e4f13b515b80f7d20c61a44efc6a448f (patch)
tree3a4fcaea684e69f3b09016df1a856822969c0383
parent5b509fafb07abe7f344fe33de64fa386289e965e (diff)
downloadffmpeg-streaming-8433d953e4f13b515b80f7d20c61a44efc6a448f.zip
ffmpeg-streaming-8433d953e4f13b515b80f7d20c61a44efc6a448f.tar.gz
swscale: fix for sliced scaling artifacts
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
-rw-r--r--libswscale/swscale.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 0874556..c3a8d0e 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -440,7 +440,7 @@ static int swscale(SwsContext *c, const uint8_t *src[],
firstPosY = FFMAX(firstLumSrcY, posY);
lastPosY = FFMIN(firstLumSrcY + hout_slice->plane[0].available_lines - 1, srcSliceY + srcSliceH - 1);
} else {
- firstPosY = lastInLumBuf + 1;
+ firstPosY = posY;
lastPosY = lastLumSrcY;
}
@@ -449,7 +449,7 @@ static int swscale(SwsContext *c, const uint8_t *src[],
firstCPosY = FFMAX(firstChrSrcY, cPosY);
lastCPosY = FFMIN(firstChrSrcY + hout_slice->plane[1].available_lines - 1, AV_CEIL_RSHIFT(srcSliceY + srcSliceH, c->chrSrcVSubSample) - 1);
} else {
- firstCPosY = lastInChrBuf + 1;
+ firstCPosY = cPosY;
lastCPosY = lastChrSrcY;
}
OpenPOWER on IntegriCloud