[libav-commits] swscale: Remove two bogus asserts

Diego Biurrun git at libav.org
Thu Sep 13 12:18:28 CEST 2012


Module: libav
Branch: master
Commit: b9141aa346b736adffd27e1a98bd12aa7b628a8f

Author:    Diego Biurrun <diego at biurrun.de>
Committer: Diego Biurrun <diego at biurrun.de>
Date:      Tue Sep 11 22:11:25 2012 +0200

swscale: Remove two bogus asserts

---

 libswscale/swscale.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 4f0a049..edd3b72 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -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];



More information about the libav-commits mailing list