diff options
author | Alex Converse <aconverse@google.com> | 2011-05-05 11:10:19 -0700 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-05-05 21:25:48 -0700 |
commit | 869303bebd0c25dc10d88139d6a603eb6b50c71d (patch) | |
tree | f1bf5ecb80b5b6a904c89f13c8fe0c047c395f77 | |
parent | 762f95e4cbccad7f31607e5c0163d097b01332dc (diff) | |
download | ffmpeg-streaming-869303bebd0c25dc10d88139d6a603eb6b50c71d.zip ffmpeg-streaming-869303bebd0c25dc10d88139d6a603eb6b50c71d.tar.gz |
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.
-rw-r--r-- | libavcodec/wmavoice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c index 8dea30c..4e69b83 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); |