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

audio format: fix FI32 -> S16N conversion

parent 4440bb6b
......@@ -278,7 +278,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