[Ffmpeg-devel] [PATCH] Machine endian bytestream functions

Ramiro Ribeiro Polla ramiro
Wed Apr 25 04:18:03 CEST 2007

M?ns Rullg?rd wrote:
>>> I'm thinking the unaligned16/32/64 macros from bitstream.h should be
>>> renamed and moved here instead.
>> I'll take a look.
> This lets the compiler choose whatever access method is appropriate,
> and saves us the trouble of maintaining a fragile list

Is there a way for us to get that information off the compiler? (assume 
only gcc atm)
I thought maybe compile a simple read with __attribute__((packed)) and 
another without the attribute. Then compare object files and assume that 
if they're equal, unaligned access are ok.
Is that too ugly/random/unreliable?

More information about the ffmpeg-devel mailing list