[FFmpeg-devel] [PATCH 3/7] Add alias-safe union typedefs

Måns Rullgård mans
Mon Feb 1 01:13:07 CET 2010

Uoti Urpala <uoti.urpala at pp1.inet.fi> writes:

>> Casts with may_alias were found to work for x264, but the portable
>> solution is probably either no strict aliasing or using memcpy().
> Why would no strict aliasing be more portable than may_alias?

I think he meant writing the code without any aliasing violations in
the first place.  Unfortunately that is not an option until compilers
get a clue, and my thermometer in hell is still indicating hot.

M?ns Rullg?rd
mans at mansr.com

More information about the ffmpeg-devel mailing list