[FFmpeg-devel] [PATCH] dsp optimized float 2 int conversion for wma decoder

Benjamin Larsson banan
Tue Sep 4 22:36:10 CEST 2007


Michael Niedermayer wrote:
> Hi
>
> [...]
>
>>  static int wma_decode_frame(WMACodecContext *s, int16_t *samples)
>>  {
>>      int ret, i, n, ch, incr;
>> -    int16_t *ptr;
>>      float *iptr;
>> +    float tmp[2*s->frame_len];
> 
> doesnt this need to be aligned?

Yes it does. I'll reuse some aligned temp array.

> 
> and patch ok except that if the output is (nearly) the same
> 

And for the record the patch didn't work when using the x87. So I'll
resend the patch when I get that working.

MvH
Benjamin Larsson




More information about the ffmpeg-devel mailing list