Commit 12cbbbb4 authored by Franz Brauße's avatar Franz Brauße Committed by Justin Ruggles

smacker audio: sign-extend the initial 16-bit predicted value

Fixes Bug #265
Signed-off-by: 's avatarJustin Ruggles <justin.ruggles@gmail.com>
parent b691fd7a
......@@ -655,7 +655,7 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data,
}
if(bits) { //decode 16-bit data
for(i = stereo; i >= 0; i--)
pred[i] = av_bswap16(get_bits(&gb, 16));
pred[i] = sign_extend(av_bswap16(get_bits(&gb, 16)), 16);
for(i = 0; i <= stereo; i++)
*samples++ = pred[i];
for(; i < unp_size / 2; i++) {
......
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