From 4e2c63685e031e28d2296cff76473b963ee62ba1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 7 Feb 2013 16:11:23 +0100 Subject: [PATCH] sws: dont write out of array on bigendian Fixes Ticket2229 Signed-off-by: Michael Niedermayer --- libswscale/swscale_unscaled.c | 3 +++ 1 file changed, 3 insertions(+) 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; }