mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
swscale: fix ticket 4850
(cherry picked from commit 77367f61b38dbdf17c31aa6a6b3edccb2ebf5354) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
2a6103a082
commit
a8d0dcbafa
@ -522,8 +522,8 @@ static int swscale(SwsContext *c, const uint8_t *src[],
|
|||||||
#ifdef NEW_FILTER
|
#ifdef NEW_FILTER
|
||||||
hasLumHoles = lastInLumBuf != firstLumSrcY - 1;
|
hasLumHoles = lastInLumBuf != firstLumSrcY - 1;
|
||||||
if (hasLumHoles) {
|
if (hasLumHoles) {
|
||||||
hout_slice->plane[0].sliceY = lastInLumBuf + 1;
|
hout_slice->plane[0].sliceY = firstLumSrcY;
|
||||||
hout_slice->plane[3].sliceY = lastInLumBuf + 1;
|
hout_slice->plane[3].sliceY = firstLumSrcY;
|
||||||
hout_slice->plane[0].sliceH =
|
hout_slice->plane[0].sliceH =
|
||||||
hout_slice->plane[3].sliceH = 0;
|
hout_slice->plane[3].sliceH = 0;
|
||||||
}
|
}
|
||||||
@ -534,8 +534,8 @@ static int swscale(SwsContext *c, const uint8_t *src[],
|
|||||||
#ifdef NEW_FILTER
|
#ifdef NEW_FILTER
|
||||||
hasChrHoles = lastInChrBuf != firstChrSrcY - 1;
|
hasChrHoles = lastInChrBuf != firstChrSrcY - 1;
|
||||||
if (hasChrHoles) {
|
if (hasChrHoles) {
|
||||||
hout_slice->plane[1].sliceY = lastInChrBuf + 1;
|
hout_slice->plane[1].sliceY = firstChrSrcY;
|
||||||
hout_slice->plane[2].sliceY = lastInChrBuf + 1;
|
hout_slice->plane[2].sliceY = firstChrSrcY;
|
||||||
hout_slice->plane[1].sliceH =
|
hout_slice->plane[1].sliceH =
|
||||||
hout_slice->plane[2].sliceH = 0;
|
hout_slice->plane[2].sliceH = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user