aboutsummaryrefslogtreecommitdiff
path: root/libswscale
diff options
context:
space:
mode:
authorPedro Arthur2015-09-20 18:03:49 -0300
committerPedro Arthur2015-09-20 18:08:14 -0300
commit77367f61b38dbdf17c31aa6a6b3edccb2ebf5354 (patch)
treef8aa363e4fef0a099f9d64519364de150e9a54c9 /libswscale
parentf67170e81b79ffbb1a5aa3f218baf906afd136ba (diff)
swscale: fix ticket 4850
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index f4aa41b2be..346728d9bd 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -526,8 +526,8 @@ static int swscale(SwsContext *c, const uint8_t *src[],
#ifdef NEW_FILTER
hasLumHoles = lastInLumBuf != firstLumSrcY - 1;
if (hasLumHoles) {
- hout_slice->plane[0].sliceY = lastInLumBuf + 1;
- hout_slice->plane[3].sliceY = lastInLumBuf + 1;
+ hout_slice->plane[0].sliceY = firstLumSrcY;
+ hout_slice->plane[3].sliceY = firstLumSrcY;
hout_slice->plane[0].sliceH =
hout_slice->plane[3].sliceH = 0;
}
@@ -538,8 +538,8 @@ static int swscale(SwsContext *c, const uint8_t *src[],
#ifdef NEW_FILTER
hasChrHoles = lastInChrBuf != firstChrSrcY - 1;
if (hasChrHoles) {
- hout_slice->plane[1].sliceY = lastInChrBuf + 1;
- hout_slice->plane[2].sliceY = lastInChrBuf + 1;
+ hout_slice->plane[1].sliceY = firstChrSrcY;
+ hout_slice->plane[2].sliceY = firstChrSrcY;
hout_slice->plane[1].sliceH =
hout_slice->plane[2].sliceH = 0;
}