]> git.tuebingen.mpg.de Git - paraslash.git/commit
mp3dec: Allocate correct output buffer size also for mono files.
authorAndre Noll <maan@systemlinux.org>
Sat, 16 Jul 2011 13:21:57 +0000 (15:21 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 9 Aug 2011 21:11:34 +0000 (23:11 +0200)
commitde8f6f12fdd4e740d10a167a839e37e79257e955
tree4c1d8dbf80f0d97762f55e7e8d6a10eafa8db41a
parent23615455a3ee7cca4b39c4e1c414ef943e319986
mp3dec: Allocate correct output buffer size also for mono files.

Currently the buffer size is chosen to hold 4 bytes per sample
even for mono files where 2 bytes per sample suffice.

Since the channel count does not change within a frame, use the
cached value in pmd->channels rather than the MAD_NCHANNELS
macro for each sample.
mp3dec_filter.c