Please add here the issue related to libav-0.7 and upcoming libav-0.8 issues. Most of them are related to missing libavutil/mathematics.h include other might be a little more involving. I'll provide the patches or ask to apply them
Note: many patched ebuilds are already in the sabayon overlay (layman -fa sabayon).
Old tracker, can be closed.