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

Michael Niedermayer git at videolan.org
Thu Feb 14 14:17:29 CET 2013


ffmpeg | branch: release/1.1 | Michael Niedermayer <michaelni at gmx.at> | Thu Feb  7 16:11:23 2013 +0100| [71fee2ab1e77f2cba619b54474d980158d9f24b9] | 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=71fee2ab1e77f2cba619b54474d980158d9f24b9
---

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

diff --git a/libswscale/swscale_unscaled.c b/libswscale/swscale_unscaled.c
index f35d1ba..44a6902 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