OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35aaa30
)
af_biquads: memset(0) cache
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 25 Feb 2013 02:33:18 +0000
(
03:33
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 25 Feb 2013 03:39:26 +0000
(
04:39
+0100)
Fixes valgrind warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/af_biquads.c
patch
|
blob
|
history
diff --git
a/libavfilter/af_biquads.c
b/libavfilter/af_biquads.c
index
de0ba42
..
cae3e02
100644
(file)
--- a/
libavfilter/af_biquads.c
+++ b/
libavfilter/af_biquads.c
@@
-379,6
+379,7
@@
static int config_output(AVFilterLink *outlink)
p->cache = av_realloc_f(p->cache, sizeof(ChanCache), inlink->channels);
if (!p->cache)
return AVERROR(ENOMEM);
+ memset(p->cache, 0, sizeof(ChanCache) * inlink->channels);
switch (inlink->format) {
case AV_SAMPLE_FMT_S16P: p->filter = biquad_s16; break;