diff options
-rw-r--r-- | source/blender/blenkernel/intern/writeffmpeg.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c index e31e7fb5b63..345d9ce1193 100644 --- a/source/blender/blenkernel/intern/writeffmpeg.c +++ b/source/blender/blenkernel/intern/writeffmpeg.c @@ -25,12 +25,6 @@ # include <stdlib.h> -# include <libavformat/avformat.h> -# include <libavcodec/avcodec.h> -# include <libavutil/rational.h> -# include <libavutil/samplefmt.h> -# include <libswscale/swscale.h> - # include "MEM_guardedalloc.h" # include "DNA_scene_types.h" @@ -56,6 +50,14 @@ # include "IMB_imbuf.h" +/* This needs to be included after BLI_math_base.h otherwise it will redefine some math defines + * like M_SQRT1_2 leading to warnings with MSVC */ +# include <libavformat/avformat.h> +# include <libavcodec/avcodec.h> +# include <libavutil/rational.h> +# include <libavutil/samplefmt.h> +# include <libswscale/swscale.h> + # include "ffmpeg_compat.h" struct StampData; |