summaryrefslogtreecommitdiff
path: root/command/decoder.h
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-09-24 23:02:39 +0200
committerJochen Dolze <vdr@dolze.de>2010-09-24 23:02:39 +0200
commit05dff1022a467deec38f93b0987db9aeb2b43420 (patch)
treeba18b9ed88d11070b7100fd2d5a895737d14e330 /command/decoder.h
parent467feedc49246f6c2287c0e8a20a171596a9bba3 (diff)
downloadvdr-plugin-markad-05dff1022a467deec38f93b0987db9aeb2b43420.tar.gz
vdr-plugin-markad-05dff1022a467deec38f93b0987db9aeb2b43420.tar.bz2
Added support for libavcodec51 (see define in Makefile)
Lowered memory consumption on some cases Enhanced buffer usage output
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"
}