Showing the changes to codec/processing/src (1 of 1 file). Show all
Unified · Split
| @@ -220,7 +220,7 @@ EResult CDownsampling::Process (int32_t iType, SPixMap* pSrcPixMap, SPixMap* pDs · 219 unmodified lines | ||
| 220 | 220 | DownsampleHalfAverage ((uint8_t*)pDstPixMap->pPixel[2], pDstPixMap->iStride[2], |
| 221 | 221 | (uint8_t*)pSrcV, iSrcStrideV, iSrcWidthUV, iSrcHeightUV); |
| 222 | 222 | break; |
| 223 | − } else if (((iHalfSrcWidth >> 1) >= iDstWidthY) && ((iHalfSrcHeight >> 1) >= iDstHeightY)) { | |
| 223 | + } else if ((iHalfSrcWidth > iDstWidthY) && (iHalfSrcHeight > iDstHeightY)){ | |
| 224 | 224 | // use half average functions |
| 225 | 225 | iDstStrideY = WELS_ALIGN (iHalfSrcWidth, 32); |
| 226 | 226 | iDstStrideU = WELS_ALIGN (iHalfSrcWidth >> 1, 32); |