sws: dont write out of array on bigendian

Fixes Ticket2229

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4e2c63685e)
This commit is contained in:
Carl Eugen Hoyos 2013-02-14 14:42:41 +01:00
parent 4d9bde86d0
commit 7a21b089c2
1 changed files with 3 additions and 0 deletions

View File

@ -483,6 +483,9 @@ static rgbConvFn findRgbConvFn(SwsContext *c)
}
}
if ((dstFormat == PIX_FMT_RGB32_1 || dstFormat == PIX_FMT_BGR32_1) && !isRGBA32(srcFormat) && ALT32_CORR<0)
return NULL;
return conv;
}