diff options
Diffstat (limited to 'plugins/aac/aac.c')
-rw-r--r-- | plugins/aac/aac.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c index 8796da83..abee9770 100644 --- a/plugins/aac/aac.c +++ b/plugins/aac/aac.c @@ -1,5 +1,5 @@ /* - DeaDBeeF - ultimate music player for GNU/Linux systems with X11 + DeaDBeeF - The Ultimate Music Player Copyright (C) 2009-2013 Alexey Yakovenko <waker@users.sourceforge.net> This program is free software; you can redistribute it and/or @@ -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]) { |