summaryrefslogtreecommitdiff
path: root/libswscale
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2009-03-20 16:29:47 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2009-03-20 16:29:47 +0000
commit1cd98da82071458468079e3dc15979c53c86491d (patch)
treed5830cdbb4c894e7f0eb1b79c9701a3c1900246e /libswscale
parent04ef1d3f7b0d954edc7a9310e5b0991d47dd48dd (diff)
downloadffmpeg-1cd98da82071458468079e3dc15979c53c86491d.tar.gz
Initialize pointer arrays which may be freed before being initialized.
Originally committed as revision 29017 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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;