[vlc-commits] audio format: fix FI32 -> S16N conversion
Rémi Denis-Courmont
git at videolan.org
Fri Dec 21 19:20:04 CET 2012
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec 21 20:15:46 2012 +0200| [9d9d295745fd275791962e79172c3eec6677e5fb] | committer: Rémi Denis-Courmont
audio format: fix FI32 -> S16N conversion
(cherry picked from commit 84fab3ddd6f554d922df1c18ae4ab1266598d383)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=9d9d295745fd275791962e79172c3eec6677e5fb
---
modules/audio_filter/converter/format.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_filter/converter/format.c b/modules/audio_filter/converter/format.c
index bef50b2..1c58a1b 100644
--- a/modules/audio_filter/converter/format.c
+++ b/modules/audio_filter/converter/format.c
@@ -394,7 +394,7 @@ static block_t *Fi32toS16(filter_t *filter, block_t *b)
else if (v <= -FIXED32_ONE)
*dst++ = INT16_MIN;
else
- *dst++ = v >> (32 - FIXED32_FRACBITS);
+ *dst++ = v >> (FIXED32_FRACBITS - 15);
}
b->i_buffer /= 2;
return b;
More information about the vlc-commits
mailing list