Compiling FFMPEG in Visual Studio 2013

4.2k views Asked by At

I need help compiling "http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/api-example_8c-source.html" using visual studio express 2013.

I followed the solution indicated in "Use FFmpeg in Visual Studio", however I still get the message "error C1189: #missing -D__STDC_CONSTANT_MACROS / #define __STDC_CONSTANT_MACROS

Thanks,

1

There are 1 answers

1
Evan Lin On

Please try it, it should work.

#include <math.h>
extern "C" {
    #ifndef __STDC_CONSTANT_MACROS
    #define __STDC_CONSTANT_MACROS
    #endif

    #include <libavutil/opt.h>
    #include <libavcodec/avcodec.h>
    #include <libavutil/channel_layout.h>
    #include <libavutil/common.h>
    #include <libavutil/imgutils.h>
    #include <libavutil/mathematics.h>
    #include <libavutil/samplefmt.h>
}