ffmpeg: check against correct version constants.
54.23.x is ffmpeg 0.11, which still has "CodecID" (and x>0).
This commit is contained in:
parent
f618c89e17
commit
278af8e281
@ -57,7 +57,7 @@
|
||||
// Otherwise the alternative code could simply be removed from this file.
|
||||
#endif
|
||||
|
||||
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (23 << 8))
|
||||
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (50 << 8))
|
||||
typedef AVCodecID CodecID;
|
||||
#endif
|
||||
|
||||
|
@ -17,7 +17,7 @@ extern "C" {
|
||||
#include "EncoderPlugin.h"
|
||||
|
||||
|
||||
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (23 << 8))
|
||||
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (50 << 8))
|
||||
typedef AVCodecID CodecID;
|
||||
#endif
|
||||
|
||||
|
@ -53,7 +53,7 @@ static const size_t kIOBufferSize = 64 * 1024;
|
||||
#define OPEN_CODEC_CONTEXT 1
|
||||
#define GET_CONTEXT_DEFAULTS 0
|
||||
|
||||
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (23 << 8))
|
||||
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (50 << 8))
|
||||
typedef AVCodecID CodecID;
|
||||
#endif
|
||||
|
||||
|
@ -12,7 +12,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
|
||||
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (23 << 8))
|
||||
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (50 << 8))
|
||||
typedef AVCodecID CodecID;
|
||||
#endif
|
||||
|
||||
|
@ -13,7 +13,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
|
||||
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (23 << 8))
|
||||
#if LIBAVCODEC_VERSION_INT > ((54 << 16) | (50 << 8))
|
||||
typedef AVCodecID CodecID;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user