diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-07-08 21:18:21 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-07-08 21:18:21 +0200 |
commit | cf435dc001e85b03c758a61cc8e39dfaad0eae72 (patch) | |
tree | 4e6ae4cdaf70a5e76cd1ea17fc62e819d77041a0 /plugins/aac | |
parent | cd1f8a742553ed33aa1496f4e129ccd4c7e746f5 (diff) |
aac: minor memset bugfix
Diffstat (limited to 'plugins/aac')
-rw-r--r-- | plugins/aac/aac.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c index 8796da83..92d2d6ec 100644 --- a/plugins/aac/aac.c +++ b/plugins/aac/aac.c @@ -492,7 +492,10 @@ aac_init (DB_fileinfo_t *_info, DB_playItem_t *it) { _info->fmt.channelmask |= 1 << i; } info->noremap = 0; - info->remap[0] = -1; + for (int i = 0; i < sizeof (info->remap) / sizeof (int); i++) { + info->remap[i] = -1; + } + trace ("init success\n"); return 0; @@ -559,8 +562,6 @@ aac_read (DB_fileinfo_t *_info, char *bytes, int size) { int i, j; if (info->remap[0] == -1) { // build remap mtx - memset (info->remap, -1, sizeof (info->remap)); - // FIXME: should build channelmask 1st; then remap based on channelmask for (i = 0; i < _info->fmt.channels; i++) { switch (info->frame_info.channel_position[i]) { |