[FFmpeg-devel] [PATCH] Fix compilation with libutvideo version 12.0.0
Stephen Hutchinson
qyot27 at gmail.com
Sun Jan 13 03:54:45 CET 2013
On Sat, Jan 12, 2013 at 9:45 PM, Stephen Hutchinson <qyot27 at gmail.com> wrote:
> Will do.
Let's try this again, those line breakages bug me.
---
libavcodec/libutvideo.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/libavcodec/libutvideo.h b/libavcodec/libutvideo.h
index a9387e1..78639c7 100644
--- a/libavcodec/libutvideo.h
+++ b/libavcodec/libutvideo.h
@@ -31,6 +31,16 @@
#include <utvideo/utvideo.h>
#include <utvideo/Codec.h>
+/* 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;
--
1.7.11.msysgit.1
More information about the ffmpeg-devel
mailing list