[FFmpeg-cvslog] sws: dont write out of array on bigendian

Carl Eugen Hoyos git at videolan.org
Thu Feb 14 15:14:36 CET 2013


ffmpeg | branch: release/0.11 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Feb 14 14:40:26 2013 +0100| [2f98537ea0749665b8dd70c31b7dc68b8a685cd1] | 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=2f98537ea0749665b8dd70c31b7dc68b8a685cd1
---

 libswscale/swscale_unscaled.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index 754edaf..52951e0 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -595,6 +595,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