[FFmpeg-devel] [PATCH] WMA: use type punning and unroll loops in decode_exp_vlc()
Tue Sep 29 12:40:36 CEST 2009
Michael Niedermayer <michaelni at gmx.at> writes:
> On Tue, Sep 29, 2009 at 09:10:49AM +0100, M?ns Rullg?rd wrote:
>> Mans Rullgard <mans at mansr.com> writes:
>> > GCC does stupid things if these assignments are done using floats
>> > directly, so fill the runs using integer operations instead. Also
>> > unroll the loops since the length is always a multiple of 4.
>> > ---
>> > libavcodec/wmadec.c | 22 ++++++++++++++++------
>> > 1 files changed, 16 insertions(+), 6 deletions(-)
>> > + iv = AV_RN32(ptab + last_exp);
>> I don't know what I was thinking when I wrote that. I've changed it
>> to use a uint32_t pointer instead.
> float->uint32_t is ok
Those patches applied.
mans at mansr.com
More information about the ffmpeg-devel