aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 17:04:54 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 17:04:54 +0000
commit665ab837616aa1977805c21b2e0d67c395de3d87 (patch)
tree14eba057f2bc235a2106aaf5927cde6ae2be46c8
parent355d18a593c4e79aae733dbd0bb3157b3b5f7014 (diff)
downloadmpd-665ab837616aa1977805c21b2e0d67c395de3d87.tar.gz
mpd-665ab837616aa1977805c21b2e0d67c395de3d87.tar.xz
mpd-665ab837616aa1977805c21b2e0d67c395de3d87.zip
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
Diffstat (limited to '')
-rw-r--r--src/pcm_utils.c4
1 files changed, 4 insertions, 0 deletions
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);
}
}