Commit 01bf0a17 authored by Pedro Arthur's avatar Pedro Arthur Committed by Michael Niedermayer

swscale: fix ticket #4877

(cherry picked from commit a8602dde)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 3cd1be97
...@@ -476,7 +476,7 @@ static int swscale(SwsContext *c, const uint8_t *src[], ...@@ -476,7 +476,7 @@ static int swscale(SwsContext *c, const uint8_t *src[],
ff_init_slice_from_src(vout_slice, (uint8_t**)dst, dstStride, c->dstW, ff_init_slice_from_src(vout_slice, (uint8_t**)dst, dstStride, c->dstW,
dstY, dstH, dstY >> c->chrDstVSubSample, dstY, dstH, dstY >> c->chrDstVSubSample,
FF_CEIL_RSHIFT(dstH, c->chrDstVSubSample)); FF_CEIL_RSHIFT(dstH, c->chrDstVSubSample));
if (srcSliceY == 0) {
hout_slice->plane[0].sliceY = lastInLumBuf + 1; hout_slice->plane[0].sliceY = lastInLumBuf + 1;
hout_slice->plane[1].sliceY = lastInChrBuf + 1; hout_slice->plane[1].sliceY = lastInChrBuf + 1;
hout_slice->plane[2].sliceY = lastInChrBuf + 1; hout_slice->plane[2].sliceY = lastInChrBuf + 1;
...@@ -487,6 +487,7 @@ static int swscale(SwsContext *c, const uint8_t *src[], ...@@ -487,6 +487,7 @@ static int swscale(SwsContext *c, const uint8_t *src[],
hout_slice->plane[2].sliceH = hout_slice->plane[2].sliceH =
hout_slice->plane[3].sliceH = 0; hout_slice->plane[3].sliceH = 0;
hout_slice->width = dstW; hout_slice->width = dstW;
}
#endif #endif
for (; dstY < dstH; dstY++) { for (; dstY < dstH; dstY++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment