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

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


ffmpeg | branch: release/0.10 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Thu Feb 14 14:42:41 2013 +0100| [7a21b089c2751f874aacec0bd16044e5d8facaa3] | 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=7a21b089c2751f874aacec0bd16044e5d8facaa3
---

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

diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index e1ba799..d4b39f4 100644
--- a/libswscale/swscale_unscaled.c
+++ b/libswscale/swscale_unscaled.c
@@ -483,6 +483,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