Commit 665ab837 authored by J. Alexander Treuman's avatar J. Alexander Treuman

Exit with an error if channel count isn't 1 or 2.

git-svn-id: https://svn.musicpd.org/mpd/trunk@6274 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 355d18a5
......@@ -455,6 +455,10 @@ size_t pcm_sizeOfConvBuffer(AudioFormat * inFormat, size_t inSize,
case 2:
outSize >>= 1;
break;
default:
ERROR("only 1 or 2 channels are supported "
"for conversion!\n");
exit(EXIT_FAILURE);
}
}
......
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