Mercurial > mplayer.hg
changeset 28982:a73861318395
Initialize pointer arrays which may be freed before being initialized.
author | benoit |
---|---|
date | Fri, 20 Mar 2009 16:29:47 +0000 |
parents | e975109ff839 |
children | c187b93afdf1 |
files | libswscale/swscale-example.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale-example.c Fri Mar 20 16:23:48 2009 +0000 +++ b/libswscale/swscale-example.c Fri Mar 20 16:29:47 2009 +0000 @@ -51,9 +51,9 @@ // 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;