From 392e3b3b1e08599c461746baaee33f0246a75afe Mon Sep 17 00:00:00 2001 From: Alec Leamas <alec@tests.notat.diaspora.com> Date: Thu, 31 Oct 2013 14:19:17 +0100 Subject: [PATCH] ffmpeg has renamed CodecID -> AVCodecID --- src/mgui/ffviewer.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mgui/ffviewer.cpp b/src/mgui/ffviewer.cpp index 92d76a4..82ee8b7 100644 --- a/src/mgui/ffviewer.cpp +++ b/src/mgui/ffviewer.cpp @@ -62,7 +62,7 @@ C_LINKAGE_BEGIN typedef struct AVCodecTag { #if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(52,39,00) - enum CodecID id; + enum AVCodecID id; #else int id; #endif @@ -70,14 +70,14 @@ typedef struct AVCodecTag { } AVCodecTag; #if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(52,34,00) -static uint FFCodecID2Tag(CodecID codec_id) +static uint FFCodecID2Tag(AVCodecID codec_id) { unsigned int ff_codec_get_tag(const AVCodecTag *tags, int id); extern const AVCodecTag ff_codec_bmp_tags[]; return ff_codec_get_tag(ff_codec_bmp_tags, codec_id); } #else -static uint FFCodecID2Tag(CodecID codec_id) +static uint FFCodecID2Tag(AVCodecID codec_id) { unsigned int codec_get_tag(const AVCodecTag *tags, int id); extern const AVCodecTag codec_bmp_tags[]; @@ -388,7 +388,7 @@ static unsigned char GetChar(uint tag, int bit_begin) return (tag>>bit_begin) & 0xFF; } -static std::string CodecID2Str(CodecID codec_id) +static std::string CodecID2Str(AVCodecID codec_id) { #ifdef _MSC_VER std::string tag_str = boost::format("%1%") % codec_id % bf::stop; @@ -406,7 +406,7 @@ static std::string CodecID2Str(CodecID codec_id) #else // CALC_FF_TAG -static std::string CodecID2Str(CodecID codec_id) +static std::string CodecID2Str(AVCodecID codec_id) { return Int2Str(codec_id); } -- 1.8.3.1