summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-13 15:53:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-13 15:53:05 +0200
commit0ed0f2e56600d8b404c22530a75c11b60a5380a7 (patch)
treeb9387c28ec565f591e37320be4f1ace141110910 /libswscale
parente3e09f2bad12fae4d2449cebb6130e2cf2266083 (diff)
downloadffmpeg-streaming-0ed0f2e56600d8b404c22530a75c11b60a5380a7.zip
ffmpeg-streaming-0ed0f2e56600d8b404c22530a75c11b60a5380a7.tar.gz
sws: revert: "swscale: Remove two bogus asserts"
Also change them to av_assert Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 4824271..daf7e90 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -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];
OpenPOWER on IntegriCloud