Include libavformat/avformat.h before all the other libav* headers.