Added compat define for missing format.

This commit is contained in:
Armin Novak 2017-11-13 11:28:43 +01:00
parent ff59cf028c
commit 5cd89a3bc5

View File

@ -33,6 +33,10 @@
#define AV_CODEC_ID_H264 CODEC_ID_H264 #define AV_CODEC_ID_H264 CODEC_ID_H264
#endif #endif
#if LIBAVUTIL_VERSION_MAJOR < 52
#define AV_PIX_FMT_YUV420P PIX_FMT_YUV420P
#endif
/* Ubuntu 14.04 ships without the functions provided by avutil, /* Ubuntu 14.04 ships without the functions provided by avutil,
* so define error to string methods here. */ * so define error to string methods here. */
#if !defined(av_err2str) #if !defined(av_err2str)