Mercurial > libavcodec.hg
changeset 9102:42a7dfa5b3e4 libavcodec
alacdec: Simplify reading of uncompressed samples by using
get_sbits_long().
author | jbr |
---|---|
date | Tue, 03 Mar 2009 04:57:02 +0000 |
parents | 03a05f3afbae |
children | b626fed816d7 |
files | alac.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/alac.c Tue Mar 03 04:45:45 2009 +0000 +++ b/alac.c Tue Mar 03 04:57:02 2009 +0000 @@ -540,8 +540,7 @@ 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; }