summaryrefslogtreecommitdiff
path: root/libavcodec/wmavoice.c
diff options
context:
space:
mode:
authorAlex Converse <aconverse@google.com>2011-05-05 11:10:19 -0700
committerAlex Converse <alex.converse@gmail.com>2011-05-05 21:25:48 -0700
commit869303bebd0c25dc10d88139d6a603eb6b50c71d (patch)
treef1bf5ecb80b5b6a904c89f13c8fe0c047c395f77 /libavcodec/wmavoice.c
parent762f95e4cbccad7f31607e5c0163d097b01332dc (diff)
wmavoice: Use proper size in memeset().
sizeof(array_functrion_argument) gives the size of the pointer type not the size of the array to which it points.
Diffstat (limited to 'libavcodec/wmavoice.c')
-rw-r--r--libavcodec/wmavoice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c
index 8dea30c9f1..4e69b83b32 100644
--- 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);