http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60902 --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Can you try adding -fno-strict-aliasing -fwrapv ? Next is does ffmpeg have inline-asm for the flac codec? This requires some C code knowledge though.