Showing the changes to codec/processing/src/downsample/downsample.cpp (1 of 1 file). Show all
Unified · Split
| @@ -275,12 +275,12 @@ void CDownsampling::DownsampleHalfAverage (uint8_t* pDst, int32_t iDstStride, · 274 unmodified lines | ||
| 275 | 275 | if ((iSrcStride & 31) == 0) { |
| 276 | 276 | assert ((iDstStride & 15) == 0); |
| 277 | 277 | m_pfDownsample.pfHalfAverageWidthx32 (pDst, iDstStride, |
| 278 | − pSrc, iSrcStride, WELS_ALIGN (iSrcWidth, 32), iSrcHeight); | |
| 278 | + pSrc, iSrcStride, WELS_ALIGN (iSrcWidth & ~1, 32), iSrcHeight); | |
| 279 | 279 | } else { |
| 280 | 280 | assert ((iSrcStride & 15) == 0); |
| 281 | 281 | assert ((iDstStride & 7) == 0); |
| 282 | 282 | m_pfDownsample.pfHalfAverageWidthx16 (pDst, iDstStride, |
| 283 | − pSrc, iSrcStride, WELS_ALIGN (iSrcWidth, 16), iSrcHeight); | |
| 283 | + pSrc, iSrcStride, WELS_ALIGN (iSrcWidth & ~1, 16), iSrcHeight); | |
| 284 | 284 | } |
| 285 | 285 | } |
| 286 | 286 | |