aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-03-03 04:57:02 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-03-03 04:57:02 +0000
commit6053da0182c4368874f0823bb244010236036b02 (patch)
tree1f46a7cd7a4a0a3f34b82554d9244d136f53a08b
parent5b37e2fc9ad85b8fcec376b1aec439abedfb4432 (diff)
downloadffmpeg-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
-rw-r--r--libavcodec/alac.c3
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;
}