[FFmpeg-cvslog] swscale-test: fix freeing of uninitialized variable

Michael Niedermayer git at videolan.org
Thu Oct 25 21:29:16 CEST 2012


ffmpeg | branch: release/0.10 | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 11 02:16:52 2012 +0200| [0b9d4643489477aac2c62f144aee4f53f9f98965] | committer: Michael Niedermayer

swscale-test: fix freeing of uninitialized variable

Fixes: CID733844
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit fac1ccbda1bb8441c7329a3ac18fbf04886da983)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b9d4643489477aac2c62f144aee4f53f9f98965
---

 libswscale/swscale-test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c
index ef6c55c..24a4747 100644
--- a/libswscale/swscale-test.c
+++ b/libswscale/swscale-test.c
@@ -87,7 +87,7 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h,
     static int srcStride[4];
     uint8_t *dst[4] = { 0 };
     uint8_t *out[4] = { 0 };
-    int dstStride[4];
+    int dstStride[4] = {0};
     int i;
     uint64_t ssdY, ssdU = 0, ssdV = 0, ssdA = 0;
     struct SwsContext *dstContext = NULL, *outContext = NULL;



More information about the ffmpeg-cvslog mailing list