From df4203ac6f00bb222e93438967a1e4b6209e7919 Mon Sep 17 00:00:00 2001 From: Stephen Hutchinson Date: Tue, 15 Jan 2013 01:15:10 +0100 Subject: [PATCH] Fix compilation with libutvideo version 12.0.0 Reviewed-by: Derek Buitenhuis --- libavcodec/libutvideo.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libavcodec/libutvideo.h b/libavcodec/libutvideo.h index a9387e134e..ac665b2190 100644 --- a/libavcodec/libutvideo.h +++ b/libavcodec/libutvideo.h @@ -31,6 +31,16 @@ #include #include +/* Ut Video version 12.0.0 removed the _WIN names, so if those are + * absent, redefine them to maintain compatibility with pre-v12 versions.*/ +#if !defined(UTVF_RGB24_WIN) +#define UTVF_RGB24_WIN UTVF_NFCC_BGR_BU +#endif + +#if !defined(UTVF_RGB32_WIN) +#define UTVF_RGB32_WIN UTVF_NFCC_BGRA_BU +#endif + typedef struct { uint32_t version; uint32_t original_format;