Libavcodec: do not use VP9 where not available

This commit is contained in:
Martin Pulec
2017-02-14 21:27:26 +01:00
parent f7fc7ab36a
commit 37fac85d02

View File

@@ -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