diff options
| author | Steve Bavin <pondlife@pondlife.me> | 2011-08-26 16:03:48 +0000 |
|---|---|---|
| committer | Steve Bavin <pondlife@pondlife.me> | 2011-08-26 16:03:48 +0000 |
| commit | 953a073a4d680af94036c38fcc6a1fbc4a1f9a32 (patch) | |
| tree | 8cebda9403bca7b2a9c52d95904c06bffe142b48 /apps/codecs/libwmavoice/wmavoice.c | |
| parent | 9931b3c7a812ab58884e5ae5f17fcd1b2e81514f (diff) | |
| download | rockbox-953a073a4d680af94036c38fcc6a1fbc4a1f9a32.zip rockbox-953a073a4d680af94036c38fcc6a1fbc4a1f9a32.tar.gz rockbox-953a073a4d680af94036c38fcc6a1fbc4a1f9a32.tar.bz2 rockbox-953a073a4d680af94036c38fcc6a1fbc4a1f9a32.tar.xz | |
Minor libwmavoice fixes; initialise the entire VBM tree and remove file handle leak from test util.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30360 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmavoice/wmavoice.c')
| -rw-r--r-- | apps/codecs/libwmavoice/wmavoice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libwmavoice/wmavoice.c b/apps/codecs/libwmavoice/wmavoice.c index f8bd6d6..4d31334 100644 --- a/apps/codecs/libwmavoice/wmavoice.c +++ b/apps/codecs/libwmavoice/wmavoice.c @@ -318,7 +318,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(int8_t) * 25); memset(cntr, 0, sizeof(cntr)); for (n = 0; n < 17; n++) { res = get_bits(gb, 3); |