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
This commit is contained in:
parent
355d18a593
commit
665ab83761
@ -455,6 +455,10 @@ size_t pcm_sizeOfConvBuffer(AudioFormat * inFormat, size_t inSize,
|
|||||||
case 2:
|
case 2:
|
||||||
outSize >>= 1;
|
outSize >>= 1;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
ERROR("only 1 or 2 channels are supported "
|
||||||
|
"for conversion!\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user