aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-07 16:11:23 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-07 16:22:51 +0100
commit4e2c63685e031e28d2296cff76473b963ee62ba1 (patch)
tree8c22474d883e769edcd8f60ac167d43c9d57a9bd
parent48870853b2b771c5e0a3b57ae7c8d91d7b0867f0 (diff)
downloadffmpeg-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.c3
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;
}