OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04ef1d3
)
Initialize pointer arrays which may be freed before being initialized.
author
Benoit Fouet
<benoit.fouet@free.fr>
Fri, 20 Mar 2009 16:29:47 +0000
(16:29 +0000)
committer
Benoit Fouet
<benoit.fouet@free.fr>
Fri, 20 Mar 2009 16:29:47 +0000
(16:29 +0000)
Originally committed as revision 29017 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale/swscale-example.c
patch
|
blob
|
history
diff --git
a/libswscale/swscale-example.c
b/libswscale/swscale-example.c
index
1b4be8d
..
e89930f
100644
(file)
--- 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;