mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libpostproc: fix out of array accesses detected by AddressSanitizer.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f54e06feb3
commit
f5bf7b9f4b
@ -3549,7 +3549,7 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
|
||||
{
|
||||
RENAME(tempNoiseReducer)(dstBlock-8, stride,
|
||||
c.tempBlurred[isColor] + y*dstStride + x,
|
||||
c.tempBlurredPast[isColor] + (y>>3)*256 + (x>>3),
|
||||
c.tempBlurredPast[isColor] + (y>>3)*256 + (x>>3) + 256,
|
||||
c.ppMode.maxTmpNoise);
|
||||
}
|
||||
}
|
||||
@ -3571,7 +3571,7 @@ static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[
|
||||
if((mode & TEMP_NOISE_FILTER)){
|
||||
RENAME(tempNoiseReducer)(dstBlock-8, dstStride,
|
||||
c.tempBlurred[isColor] + y*dstStride + x,
|
||||
c.tempBlurredPast[isColor] + (y>>3)*256 + (x>>3),
|
||||
c.tempBlurredPast[isColor] + (y>>3)*256 + (x>>3) + 256,
|
||||
c.ppMode.maxTmpNoise);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user