Commit f4252ee7 authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

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
parent 00fbd7bb
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment