Commit a1f97b91 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

audio format: fix FI32 -> S16N conversion

(cherry picked from commit 84fab3ddd6f554d922df1c18ae4ab1266598d383)
parent 75f7915e
......@@ -393,7 +393,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment