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