[FFmpeg-devel] [PATCH] WMA Voice decoder

Vitor Sessak vitor1001
Mon Jan 25 04:38:50 CET 2010


Ronald S. Bultje wrote:
> Hi,
> 
> On Jan 23, 2010, at 12:06 AM, Vitor Sessak <vitor1001 at gmail.com> wrote:
>>> +
>>> +        v = (val & 0x200) ? -1.0 : 1.0;
>>> +        out[idx - delta] = v;
>>> +        out[idx]         = (val & 1) ? -v : v;
>>> +    }
>>
>> ff_set_fixed_vector()
> 
> How? It doesn't repeat. Esp. If you want to use the same AMRFixed as the 
> earlier pulses.

I see... One way I see is doing "pitch_lag = INT_MAX". Another would be 
to check (pitch_fac == 0) in ff_set_fixed_vector() and not do the loop 
in this case.

But anyway you will indeed need indeed two AMRFixed structs, one for 
aw_pulse_set1() and  one for aw_pulse_set2() :(

-Vitor



More information about the ffmpeg-devel mailing list