aboutsummaryrefslogtreecommitdiffhomepage
path: root/libswscale
diff options
context:
space:
mode:
authorGravatar benoit <benoit@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-20 16:29:47 +0000
committerGravatar benoit <benoit@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-03-20 16:29:47 +0000
commit664d12c7be601c26471d94b25b81aaeb29b962ec (patch)
tree2b959dd5bf24cdd010e6038a5b1d3e1c6041aefc /libswscale
parent902bcf5fbd27c4d21dc397c37ea89ef544ac213f (diff)
Initialize pointer arrays which may be freed before being initialized.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29017 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale-example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libswscale/swscale-example.c b/libswscale/swscale-example.c
index 1b4be8db3d..e89930ff81 100644
--- a/libswscale/swscale-example.c
+++ b/libswscale/swscale-example.c
@@ -51,9 +51,9 @@ static uint64_t getSSD(uint8_t *src1, uint8_t *src2, int stride1, int stride2, i
// ref & out are YV12
static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, int srcFormat, int dstFormat,
int srcW, int srcH, int dstW, int dstH, int flags){
- uint8_t *src[4];
- uint8_t *dst[4];
- uint8_t *out[4];
+ uint8_t *src[4] = {0};
+ uint8_t *dst[4] = {0};
+ uint8_t *out[4] = {0};
int srcStride[4], dstStride[4];
int i;
uint64_t ssdY, ssdU, ssdV, ssdA=0;