projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
762f95e
)
wmavoice: Use proper size in memeset().
author
Alex Converse
<aconverse@google.com>
Thu, 5 May 2011 18:10:19 +0000
(11:10 -0700)
committer
Alex Converse
<alex.converse@gmail.com>
Fri, 6 May 2011 04:25:48 +0000
(21:25 -0700)
sizeof(array_functrion_argument) gives the size of the pointer type not
the size of the array to which it points.
libavcodec/wmavoice.c
patch
|
blob
|
history
diff --git
a/libavcodec/wmavoice.c
b/libavcodec/wmavoice.c
index
8dea30c
..
4e69b83
100644
(file)
--- a/
libavcodec/wmavoice.c
+++ b/
libavcodec/wmavoice.c
@@
-315,7
+315,7
@@
static av_cold int decode_vbmtree(GetBitContext *gb, int8_t vbm_tree[25])
};
int cntr[8], n, res;
- memset(vbm_tree, 0xff, sizeof(vbm_tree
)
);
+ memset(vbm_tree, 0xff, sizeof(vbm_tree
[0]) * 25
);
memset(cntr, 0, sizeof(cntr));
for (n = 0; n < 17; n++) {
res = get_bits(gb, 3);