diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-03-03 04:57:02 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-03-03 04:57:02 +0000 |
commit | 6053da0182c4368874f0823bb244010236036b02 (patch) | |
tree | 1f46a7cd7a4a0a3f34b82554d9244d136f53a08b /libavcodec/alac.c | |
parent | 5b37e2fc9ad85b8fcec376b1aec439abedfb4432 (diff) | |
download | ffmpeg-6053da0182c4368874f0823bb244010236036b02.tar.gz |
alacdec: Simplify reading of uncompressed samples by using
get_sbits_long().
Originally committed as revision 17744 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r-- | libavcodec/alac.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/alac.c b/libavcodec/alac.c index 3a7b0809f9..436329f560 100644 --- a/libavcodec/alac.c +++ b/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; } |