From 37fac85d028534082047dd29be0bf5fcfca54532 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 14 Feb 2017 21:27:26 +0100 Subject: [PATCH] Libavcodec: do not use VP9 where not available --- src/libavcodec_common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libavcodec_common.h b/src/libavcodec_common.h index 88d4e540c..e41ce4a19 100644 --- a/src/libavcodec_common.h +++ b/src/libavcodec_common.h @@ -43,6 +43,10 @@ extern "C" { #define avcodec_free_context av_freep #endif +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 28, 0) +#define AV_CODEC_ID_VP9 AV_CODEC_ID_NONE +#endif + #if LIBAVCODEC_VERSION_MAJOR < 55 #define av_frame_alloc avcodec_alloc_frame #define av_frame_free avcodec_free_frame