diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index e1315c2eb4..4ce6d61cd2 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -36,15 +36,16 @@ #include "libavutil/dict.h" #include "libavutil/frame.h" #include "libavutil/log.h" -#if FF_API_FAST_MALLOC -// to provide fast_*alloc -#include "libavutil/mem.h" -#endif #include "libavutil/pixfmt.h" #include "libavutil/rational.h" #include "version.h" +#if FF_API_FAST_MALLOC +// to provide fast_*alloc +#include "libavutil/mem.h" +#endif + /** * @defgroup libavc Encoding/Decoding Library * @{