[FFmpeg-devel] [PATCH] WMA Voice decoder
Ronald S. Bultje
Mon Jan 25 16:41:06 CET 2010
On Sun, Jan 24, 2010 at 10:38 PM, Vitor Sessak <vitor1001 at gmail.com> wrote:
> Ronald S. Bultje wrote:
>> 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;
>> 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
> But anyway you will indeed need indeed two AMRFixed structs, one for
> aw_pulse_set1() and ?one for aw_pulse_set2() :(
Isn't ff_set_fixed_vector() much slower since it enters a loop (once)?
I might want to keep this away from unnecessary loops. Does G729/AMR
have anything like this?
More information about the ffmpeg-devel