[FFmpeg-cvslog] sws: dont write out of array on bigendian
Michael Niedermayer
git at videolan.org
Thu Feb 7 16:40:42 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Feb 7 16:11:23 2013 +0100| [4e2c63685e031e28d2296cff76473b963ee62ba1] | committer: Michael Niedermayer
sws: dont write out of array on bigendian
Fixes Ticket2229
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e2c63685e031e28d2296cff76473b963ee62ba1
---
libswscale/swscale_unscaled.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 162ba24..55cda5d 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;
}
More information about the ffmpeg-cvslog
mailing list