[FFmpeg-devel] [PATCH] Fix compilation with libutvideo version 12.0.0

Stephen Hutchinson qyot27 at gmail.com
Sun Jan 13 03:45:12 CET 2013


On Sat, Jan 12, 2013 at 8:24 PM, Derek Buitenhuis
<derek.buitenhuis at gmail.com> wrote:
> IMHO they should be done separately, just for clarity. Also, a comment
> should be there to at least explain what's going on.
>
> - Derek

Will do.


---
 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, define them
+ * against the new names to maintain compatibility with pre-v12
versions of the library.*/
+#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