ffmpeg-2 -- CodecID

deprecated:
http://git.videolan.org/?p=ffmpeg.git;a=commit;h=104e10fb426f903ba9157fdbfe30292d0e4c3d72

broken with libavcodec 55
This commit is contained in:
eroen 2013-11-21 13:26:03 +01:00
parent cbcf0de3fa
commit 6fe23e1a38
1 changed files with 4 additions and 0 deletions

View File

@ -54,7 +54,11 @@ typedef struct _TSMFFFmpegDecoder
ITSMFDecoder iface; ITSMFDecoder iface;
int media_type; int media_type;
#if LIBAVCODEC_VERSION_MAJOR < 55
enum CodecID codec_id; enum CodecID codec_id;
#else
enum AVCodecID codec_id;
#endif
AVCodecContext* codec_context; AVCodecContext* codec_context;
AVCodec* codec; AVCodec* codec;
AVFrame* frame; AVFrame* frame;