]> git.sesse.net Git - ffmpeg/commitdiff
swscale: Remove two bogus asserts
authorDiego Biurrun <diego@biurrun.de>
Tue, 11 Sep 2012 20:11:25 +0000 (22:11 +0200)
committerDiego Biurrun <diego@biurrun.de>
Thu, 13 Sep 2012 10:13:28 +0000 (12:13 +0200)
libswscale/swscale.c

index 4f0a049b3dacb96aecf5139214700cb8771f09c7..edd3b728ee65489efa9d78a4839029cb34f5fab9 100644 (file)
@@ -628,8 +628,6 @@ static int swScale(SwsContext *c, const uint8_t *src[],
                     }
                 }
             } else {
-                assert(lumSrcPtr  + vLumFilterSize - 1 < lumPixBuf  + vLumBufSize * 2);
-                assert(chrUSrcPtr + vChrFilterSize - 1 < chrUPixBuf + vChrBufSize * 2);
                 if (c->yuv2packed1 && vLumFilterSize == 1 &&
                     vChrFilterSize <= 2) { // unscaled RGB
                     int chrAlpha = vChrFilterSize == 1 ? 0 : vChrFilter[2 * dstY + 1];