diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-11-01 20:15:17 +0300 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-11-01 20:15:17 +0300 |
commit | e6a2ab319f10fa318aa4d9b4e7c5cef0fd95dc87 (patch) | |
tree | e6b1405fe4412257270a9d617d01c740985ac431 /source/gameengine/VideoTexture/VideoFFmpeg.h | |
parent | 4870db578b8a08a58ae6e553094c3998a92fcb7e (diff) |
VideoTexture: AVFormatContext::pb is not a pointer for avformat library older than 52 (linux uses 51)
Diffstat (limited to 'source/gameengine/VideoTexture/VideoFFmpeg.h')
-rw-r--r-- | source/gameengine/VideoTexture/VideoFFmpeg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/gameengine/VideoTexture/VideoFFmpeg.h b/source/gameengine/VideoTexture/VideoFFmpeg.h index 7980e06686c..4720bef1841 100644 --- a/source/gameengine/VideoTexture/VideoFFmpeg.h +++ b/source/gameengine/VideoTexture/VideoFFmpeg.h @@ -36,6 +36,10 @@ extern "C" { #define FFMPEG_CODEC_IS_POINTER 1 #endif +#if LIBAVFORMAT_VERSION_INT >= (52 << 16) +#define FFMPEG_PB_IS_POINTER 1 +#endif + #ifdef FFMPEG_CODEC_IS_POINTER static inline AVCodecContext* get_codec_from_stream(AVStream* stream) { |