[FFmpeg-devel] [PATCH] ALS decoder

Thilo Borgmann thilo.borgmann
Sun Aug 23 13:24:19 CEST 2009


Herv? W. schrieb:
> 2009/8/23 Herv? W. <H.O.W.aka.V+ffmpeg at gmail.com>:
>>>>> +                // read coefficients 2 to opt_order
>>>>> +                for (k = 2; k < opt_order; k++) {
>>>>> +                    quant_index = get_bits(gb, 7) - 64;
>>>>> +                    quant_cof[k] = (quant_index << 14) + (1 << 13);
>>>> the +- can be combined
>>> Sorry I can't see that..
>> Perhaps
>> quant_index = get_bits(gb, 7);
>> quant_cof[k] = (quant_index << 14) + (7F << 13);
>>
>> is intended. I haven't looked at the rest of the related code.
> 
> 
> oops. Minus, not plus.
> quant_cof[k] = (quant_index << 14) - (7F << 13);
Ok.

Thanks!

-Thilo



More information about the ffmpeg-devel mailing list