diff options
author | Pedro Arthur <bygrandao@gmail.com> | 2015-09-20 18:03:49 -0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-10-08 13:15:42 +0200 |
commit | a8d0dcbafadef11156833f1a335f3473c08727aa (patch) | |
tree | 08de82879b5eed70c16daba5d054dc17882d2537 | |
parent | 2a6103a0820e99cf5ee1a368f3ae34838dc7e976 (diff) | |
download | ffmpeg-a8d0dcbafadef11156833f1a335f3473c08727aa.tar.gz |
swscale: fix ticket 4850
(cherry picked from commit 77367f61b38dbdf17c31aa6a6b3edccb2ebf5354)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libswscale/swscale.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 45a6b7c98d..cdc30a252b 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -522,8 +522,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; } @@ -534,8 +534,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; } |