[FFmpeg-devel] [PATCH] ALS decoder

Hervé W. H.O.W.aka.V+ffmpeg
Sun Aug 23 00:50:44 CEST 2009


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);

-V



More information about the ffmpeg-devel mailing list