mpc_plugin.c: fix compilation error with MPC_FIXED_POINT

(It sounds like crap though)

git-svn-id: https://svn.musicpd.org/mpd/trunk@4596 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Eric Wong 2006-08-07 21:23:03 +00:00
parent ae97bcdfa2
commit 354d9aed79

View File

@ -98,7 +98,7 @@ static inline mpd_sint16 convertSample(MPC_SAMPLE_FORMAT sample)
#ifdef MPC_FIXED_POINT
const int shift = 16 - MPC_FIXED_POINT_SCALE_SHIFT;
if (ssample > 0) {
if (sample > 0) {
sample <<= shift;
} else if (shift < 0) {
sample >>= -shift;