From 665ab837616aa1977805c21b2e0d67c395de3d87 Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Sat, 26 May 2007 17:04:54 +0000 Subject: 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 --- src/pcm_utils.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pcm_utils.c') diff --git a/src/pcm_utils.c b/src/pcm_utils.c index bf4b5e4c8..36b1a9b37 100644 --- a/src/pcm_utils.c +++ b/src/pcm_utils.c @@ -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); } } -- cgit v1.2.3