From 869303bebd0c25dc10d88139d6a603eb6b50c71d Mon Sep 17 00:00:00 2001 From: Alex Converse Date: Thu, 5 May 2011 11:10:19 -0700 Subject: 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. --- libavcodec/wmavoice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3