summaryrefslogtreecommitdiff
path: root/command/decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'command/decoder.h')
-rw-r--r--command/decoder.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/command/decoder.h b/command/decoder.h
index e3fb7a7..4a59883 100644
--- a/command/decoder.h
+++ b/command/decoder.h
@@ -14,15 +14,23 @@ typedef unsigned char uchar;
extern "C"
{
+#ifdef USE_OLD_FFMPEG_HEADERS
+#include <avcodec.h>
+#else
#include <libavcodec/avcodec.h>
+#endif
#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
#warning H264 parsing may be broken, better use libavcodec52
#endif
#if LIBAVCODEC_VERSION_INT < ((52<<16)+(23<<8)+0)
+#ifdef USE_OLD_FFMPEG_HEADERS
+#include <avformat.h>
+#else
#include <libavformat/avformat.h>
#endif
+#endif
#include "debug.h"
}