Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
firstPosY = FFMAX(firstLumSrcY, posY);
lastPosY = FFMIN(firstLumSrcY + hout_slice->plane[0].available_lines - 1, srcSliceY + srcSliceH - 1);
} else {
- firstPosY = lastInLumBuf + 1;
+ firstPosY = posY;
lastPosY = lastLumSrcY;
}
firstCPosY = FFMAX(firstChrSrcY, cPosY);
lastCPosY = FFMIN(firstChrSrcY + hout_slice->plane[1].available_lines - 1, AV_CEIL_RSHIFT(srcSliceY + srcSliceH, c->chrSrcVSubSample) - 1);
} else {
- firstCPosY = lastInChrBuf + 1;
+ firstCPosY = cPosY;
lastCPosY = lastChrSrcY;
}