swscale-test: fix freeing of uninitialized variable
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Oct 2012 00:16:52 +0000 (02:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Oct 2012 00:21:28 +0000 (02:21 +0200)
Fixes: CID733844
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswscale/swscale-test.c

index 03a887f..3056ea5 100644 (file)
@@ -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;