diff options
Diffstat (limited to 'plugins/vorbis/vorbis.c')
-rw-r--r-- | plugins/vorbis/vorbis.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c index f4cb3f3b..a966add0 100644 --- a/plugins/vorbis/vorbis.c +++ b/plugins/vorbis/vorbis.c @@ -320,7 +320,7 @@ cvorbis_read (DB_fileinfo_t *_info, char *bytes, int size) { endianess = 1; #endif - if (_info->fmt.channels <= 2) { + if (_info->fmt.channels <= 2 || _info->fmt.channels == 4) { ret=ov_read (&info->vorbis_file, bytes, size, endianess, 2, 1, &info->cur_bit_stream); } else { @@ -331,7 +331,7 @@ cvorbis_read (DB_fileinfo_t *_info, char *bytes, int size) { int idx = _info->fmt.channels - 3; static int remap[4][6] = { {0,2,1}, - {0,1,2,3}, + {0,1,2,3}, // should not be used {0,2,1,3,4}, {0,2,1,4,5,3} }; |