Skip to content
Snippets Groups Projects
Commit 77367f61 authored by Pedro Arthur's avatar Pedro Arthur
Browse files

swscale: fix ticket 4850

parent f67170e8
No related branches found
No related tags found
No related merge requests found
...@@ -526,8 +526,8 @@ static int swscale(SwsContext *c, const uint8_t *src[], ...@@ -526,8 +526,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;
} }
...@@ -538,8 +538,8 @@ static int swscale(SwsContext *c, const uint8_t *src[], ...@@ -538,8 +538,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;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment