On Tue, Oct 25, 2011 at 11:43:58AM -0400, Justin Ruggles wrote:
> ---
> libavcodec/alac.c | 12 +-----------
> 1 files changed, 1 insertions(+), 11 deletions(-)
>
> diff --git a/libavcodec/alac.c b/libavcodec/alac.c
> index 5ff8cad..f61d31f 100644
> --- a/libavcodec/alac.c
> +++ b/libavcodec/alac.c
> @@ -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;
> --
OK
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel