Skip to content

Commit

Permalink
swscale: fix for sliced scaling artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
  • Loading branch information
grandao committed Sep 16, 2016
1 parent 5b509fa commit 8433d95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libswscale/swscale.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down

0 comments on commit 8433d95

Please sign in to comment.