Commit b2786f26 authored by jbr's avatar jbr

alacdec: Simplify reading of uncompressed samples by using

get_sbits_long().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17744 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 015a3c4f
......@@ -540,8 +540,7 @@ static int alac_decode_frame(AVCodecContext *avctx,
for (chan = 0; chan < channels; chan++) {
int32_t audiobits;
audiobits = get_bits_long(&alac->gb, alac->setinfo_sample_size);
audiobits = sign_extend(audiobits, alac->setinfo_sample_size);
audiobits = get_sbits_long(&alac->gb, alac->setinfo_sample_size);
alac->outputsamples_buffer[chan][i] = audiobits;
}
......
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