mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
alacdec: always use get_sbits_long() for uncompressed samples
This commit is contained in:
parent
b46e58f741
commit
c3a92412c0
@ -481,21 +481,11 @@ static int alac_decode_frame(AVCodecContext *avctx,
|
||||
} else {
|
||||
/* not compressed, easy case */
|
||||
int i, chan;
|
||||
if (alac->setinfo_sample_size <= 16) {
|
||||
for (i = 0; i < outputsamples; i++)
|
||||
for (i = 0; i < outputsamples; i++) {
|
||||
for (chan = 0; chan < channels; chan++) {
|
||||
alac->outputsamples_buffer[chan][i] = get_sbits_long(&alac->gb,
|
||||
alac->setinfo_sample_size);
|
||||
}
|
||||
} else {
|
||||
for (i = 0; i < outputsamples; i++) {
|
||||
for (chan = 0; chan < channels; chan++) {
|
||||
alac->outputsamples_buffer[chan][i] = get_bits(&alac->gb,
|
||||
alac->setinfo_sample_size);
|
||||
alac->outputsamples_buffer[chan][i] = sign_extend(alac->outputsamples_buffer[chan][i],
|
||||
alac->setinfo_sample_size);
|
||||
}
|
||||
}
|
||||
}
|
||||
alac->extra_bits = 0;
|
||||
interlacing_shift = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user