From 12a9d61d56d8db84165f931112b6d064cbd6b434 Mon Sep 17 00:00:00 2001 From: "benjamin.drung@gmail.com" Date: Sun, 25 May 2014 22:15:59 +0000 Subject: [PATCH] Use CodecID instead of AVCodecID for old libav/FFmpeg versions. --- src/FFmpeg.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/FFmpeg.h b/src/FFmpeg.h index f295615f4..5f8787e4b 100644 --- a/src/FFmpeg.h +++ b/src/FFmpeg.h @@ -49,6 +49,10 @@ extern "C" { #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 59, 100) #define avcodec_free_frame av_free #endif + + #if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 51, 100) + #define AVCodecID CodecID + #endif } #endif