[Ffmpeg-devel] [PATCH] bswap fix

Roine Gustafsson roine
Wed May 11 01:16:12 CEST 2005


On May 10, 2005, at 9:56 PM, Michael Niedermayer wrote:
> On Monday 09 May 2005 23:35, Roine Gustafsson wrote:
>> This fix will make bswap_16 and bswap_32 (and hence le2me/be2me) not
>> retrieve the argument several times.
>> This makes it possible to use e.g. le2me_32(get_bits_long(gb,32))
>> without very strange side effects, and which will work on one arch but
>> not another since one arch generates a dummy function.
>
> fixed & optimized the bswap stuff ...

I just found yet another bunch of endian macros at the end of avcodec.h 
that work on mem accesses.
Should they be rewritten to use bswap_*?

   /Roine





More information about the ffmpeg-devel mailing list