missing num_channels check in previous patch
In the patch "special optimized case for 16bit stereo", the check for "num_channels==2" was missing. git-svn-id: https://svn.musicpd.org/mpd/trunk@7331 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
00fbd7bb4b
commit
f4252ee795
@ -278,7 +278,7 @@ static FLAC__StreamDecoderWriteStatus flacWrite(const flac_decoder *dec,
|
||||
if (num_samples > max_samples)
|
||||
num_samples = max_samples;
|
||||
|
||||
if (bytes_per_sample == 2)
|
||||
if (num_channels == 2 && bytes_per_sample == 2)
|
||||
flac_convert_stereo16(data->chunk + data->chunk_length,
|
||||
buf, c_samp,
|
||||
c_samp + num_samples);
|
||||
|
Loading…
Reference in New Issue
Block a user