Commit 6053da01 authored by Justin Ruggles's avatar Justin Ruggles

alacdec: Simplify reading of uncompressed samples by using

get_sbits_long().

Originally committed as revision 17744 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 5b37e2fc
...@@ -540,8 +540,7 @@ static int alac_decode_frame(AVCodecContext *avctx, ...@@ -540,8 +540,7 @@ static int alac_decode_frame(AVCodecContext *avctx,
for (chan = 0; chan < channels; chan++) { for (chan = 0; chan < channels; chan++) {
int32_t audiobits; int32_t audiobits;
audiobits = get_bits_long(&alac->gb, alac->setinfo_sample_size); audiobits = get_sbits_long(&alac->gb, alac->setinfo_sample_size);
audiobits = sign_extend(audiobits, alac->setinfo_sample_size);
alac->outputsamples_buffer[chan][i] = audiobits; 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