From 5cd89a3bc5ec013227b86b1ae570f671c0663676 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Mon, 13 Nov 2017 11:28:43 +0100 Subject: [PATCH] Added compat define for missing format. --- libfreerdp/codec/h264_ffmpeg.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libfreerdp/codec/h264_ffmpeg.c b/libfreerdp/codec/h264_ffmpeg.c index 32ccafc..5c1ee56 100644 --- a/libfreerdp/codec/h264_ffmpeg.c +++ b/libfreerdp/codec/h264_ffmpeg.c @@ -33,6 +33,10 @@ #define AV_CODEC_ID_H264 CODEC_ID_H264 #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, * so define error to string methods here. */ #if !defined(av_err2str) -- 2.7.4