Browse Source

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

Also change them to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
0ed0f2e566
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libswscale/swscale.c

+ 2
- 0
libswscale/swscale.c View File

@@ -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];


Loading…
Cancel
Save