Commit 0ed0f2e5 authored by Michael Niedermayer's avatar Michael Niedermayer

sws: revert: "swscale: Remove two bogus asserts"

Also change them to av_assert
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e3e09f2b
......@@ -628,6 +628,8 @@ static int swScale(SwsContext *c, const uint8_t *src[],
}
}
} else {
av_assert1(lumSrcPtr + vLumFilterSize - 1 < lumPixBuf + vLumBufSize * 2);
av_assert1(chrUSrcPtr + vChrFilterSize - 1 < chrUPixBuf + vChrBufSize * 2);
if (c->yuv2packed1 && vLumFilterSize == 1 &&
vChrFilterSize <= 2) { // unscaled RGB
int chrAlpha = vChrFilterSize == 1 ? 0 : vChrFilter[2 * dstY + 1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment