alacdec: Simplify reading of uncompressed samples by using

get_sbits_long().

Originally committed as revision 17744 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Justin Ruggles 16 years ago
parent 5b37e2fc9a
commit 6053da0182
  1. 3
      libavcodec/alac.c

@ -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;
}

Loading…
Cancel
Save