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 | |
| 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')
| -rw-r--r-- | apps/codecs/libwmavoice/libavutil/lzo.c | 1 | ||||
| -rw-r--r-- | apps/codecs/libwmavoice/wmavoice.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/codecs/libwmavoice/libavutil/lzo.c b/apps/codecs/libwmavoice/libavutil/lzo.c index a876fc7..7f07cc2 100644 --- a/apps/codecs/libwmavoice/libavutil/lzo.c +++ b/apps/codecs/libwmavoice/libavutil/lzo.c @@ -274,6 +274,7 @@ STOP_TIMER("lzod") av_log(NULL, AV_LOG_ERROR, "decompression incorrect\n"); else av_log(NULL, AV_LOG_ERROR, "decompression OK\n"); + fclose(in); return 0; } #endif 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); |