Go to the documentation of this file.
20 #ifndef GNASH_MEDIA_FFMPEG_HEADERS_H
21 #define GNASH_MEDIA_FFMPEG_HEADERS_H
28 #ifndef __STDC_CONSTANT_MACROS
29 # define __STDC_CONSTANT_MACROS
34 #if defined __WORDSIZE && __WORDSIZE == 64
35 #define INT64_C(c) c ## L
37 #define INT64_C(c) c ## LL
41 #ifdef HAVE_FFMPEG_AVCODEC_H
43 # include <ffmpeg/avcodec.h>
47 #ifdef HAVE_LIBAVCODEC_AVCODEC_H
49 # include <libavcodec/avcodec.h>
53 #ifdef HAVE_FFMPEG_AVFORMAT_H
55 #include <ffmpeg/avformat.h>
59 #ifdef HAVE_LIBAVFORMAT_AVFORMAT_H
61 #include <libavformat/avformat.h>
72 #ifdef HAVE_FFMPEG_SWSCALE_H
74 #include <ffmpeg/swscale.h>
76 #define HAVE_SWSCALE_H 1
79 #ifdef HAVE_LIBSWSCALE_SWSCALE_H
81 #include <libswscale/swscale.h>
83 #define HAVE_SWSCALE_H 1
86 #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(52,94,1)
87 #define AV_SAMPLE_FMT_NONE SAMPLE_FMT_NONE
88 #define AV_SAMPLE_FMT_U8 SAMPLE_FMT_U8
89 #define AV_SAMPLE_FMT_S16 SAMPLE_FMT_S16
90 #define AV_SAMPLE_FMT_S32 SAMPLE_FMT_S32
91 #define AV_SAMPLE_FMT_FLT SAMPLE_FMT_FLT
92 #define AV_SAMPLE_FMT_DBL SAMPLE_FMT_DBL
94 #define AVSampleFormat SampleFormat
97 #endif // GNASH_MEDIA_FFMPEG_HEADERS_H