diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-02-14 14:39:21 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-02-14 14:39:21 +0100 |
commit | 140ca8f6c035bad8813db7896b88f709ddc23287 (patch) | |
tree | 0c05fd2e912a6096c782640cf80381fc2517f515 | |
parent | 169d84934423c91b321c83703bd0be660c0d25da (diff) | |
download | ffmpeg-140ca8f6c035bad8813db7896b88f709ddc23287.tar.gz |
sws: dont write out of array on bigendian
Fixes Ticket2229
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 4e2c63685e031e28d2296cff76473b963ee62ba1)
-rw-r--r-- | libswscale/swscale_unscaled.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c index 9180f2eb5c..375bc559c4 100644 --- a/libswscale/swscale_unscaled.c +++ b/libswscale/swscale_unscaled.c @@ -631,6 +631,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; } |