diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-07 16:11:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-07 16:22:51 +0100 |
commit | 4e2c63685e031e28d2296cff76473b963ee62ba1 (patch) | |
tree | 8c22474d883e769edcd8f60ac167d43c9d57a9bd | |
parent | 48870853b2b771c5e0a3b57ae7c8d91d7b0867f0 (diff) | |
download | ffmpeg-4e2c63685e031e28d2296cff76473b963ee62ba1.tar.gz |
sws: dont write out of array on bigendian
Fixes Ticket2229
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 162ba24811..55cda5dbd9 100644 --- a/libswscale/swscale_unscaled.c +++ b/libswscale/swscale_unscaled.c @@ -605,6 +605,9 @@ static rgbConvFn findRgbConvFn(SwsContext *c) } } + if ((dstFormat == AV_PIX_FMT_RGB32_1 || dstFormat == AV_PIX_FMT_BGR32_1) && !isRGBA32(srcFormat) && ALT32_CORR<0) + return NULL; + return conv; } |