mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
swscale: fix ticket #4877
This commit is contained in:
parent
25df7b1c35
commit
a8602dde5e
@ -480,7 +480,7 @@ static int swscale(SwsContext *c, const uint8_t *src[],
|
||||
ff_init_slice_from_src(vout_slice, (uint8_t**)dst, dstStride, c->dstW,
|
||||
dstY, dstH, dstY >> c->chrDstVSubSample,
|
||||
FF_CEIL_RSHIFT(dstH, c->chrDstVSubSample));
|
||||
|
||||
if (srcSliceY == 0) {
|
||||
hout_slice->plane[0].sliceY = lastInLumBuf + 1;
|
||||
hout_slice->plane[1].sliceY = lastInChrBuf + 1;
|
||||
hout_slice->plane[2].sliceY = lastInChrBuf + 1;
|
||||
@ -491,6 +491,7 @@ static int swscale(SwsContext *c, const uint8_t *src[],
|
||||
hout_slice->plane[2].sliceH =
|
||||
hout_slice->plane[3].sliceH = 0;
|
||||
hout_slice->width = dstW;
|
||||
}
|
||||
#endif
|
||||
|
||||
for (; dstY < dstH; dstY++) {
|
||||
|
Loading…
Reference in New Issue
Block a user