[FFmpeg-cvslog] sws: dont write out of array on bigendian
Carl Eugen Hoyos
git at videolan.org
Thu Feb 14 15:14:37 CET 2013
ffmpeg | branch: release/1.0 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Feb 14 14:39:21 2013 +0100| [140ca8f6c035bad8813db7896b88f709ddc23287] | committer: Carl Eugen Hoyos
sws: dont write out of array on bigendian
Fixes Ticket2229
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 4e2c63685e031e28d2296cff76473b963ee62ba1)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=140ca8f6c035bad8813db7896b88f709ddc23287
---
libswscale/swscale_unscaled.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 9180f2e..375bc55 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;
}
More information about the ffmpeg-cvslog
mailing list