diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-14 21:50:18 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-14 21:50:18 +0100 |
commit | b93c8913c5c13906c13ae62ffe3c3a3b76673396 (patch) | |
tree | 3a547d3dbd939ea8f9282dcba8c1d4a9ecd87809 /plugins/ffmpeg | |
parent | 43285f4cb5208234934202f006cdca22d66d35f8 (diff) |
ffmpeg: api versioning fix
Diffstat (limited to 'plugins/ffmpeg')
-rw-r--r-- | plugins/ffmpeg/ffmpeg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c index 0657a18c..57707f98 100644 --- a/plugins/ffmpeg/ffmpeg.c +++ b/plugins/ffmpeg/ffmpeg.c @@ -97,7 +97,7 @@ typedef struct { AVCodecContext *ctx; AVFormatContext *fctx; AVPacket pkt; -#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(53, 25, 0) +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 59, 100) AVFrame *frame; #endif int stream_id; @@ -229,7 +229,7 @@ ffmpeg_init (DB_fileinfo_t *_info, DB_playItem_t *it) { return -1; } -#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(53, 25, 0) +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 59, 100) info->frame = avcodec_alloc_frame(); #endif @@ -336,7 +336,7 @@ ffmpeg_read (DB_fileinfo_t *_info, char *bytes, int size) { int len; //trace ("in: out_size=%d(%d), size=%d\n", out_size, AVCODEC_MAX_AUDIO_FRAME_SIZE, size); -#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(53, 25, 0) +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 59, 100) int got_frame = 0; len = avcodec_decode_audio4(info->ctx, info->frame, &got_frame, &info->pkt); if (len > 0) { |