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

Stephen Hutchinson qyot27 at gmail.com
Sun Jan 13 01:25:08 CET 2013


On Sat, Jan 12, 2013 at 6:04 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> If the constants are the only difference to earlier
> versions, you could also add some defines:
>
> #if !defined(UTVF_RGB24_WIN)
> #define UTVF_RGB24_WIN UTVF_NFCC_BGR_BU
>
> I am not saying this is better, but if it's the
> only difference, it may make users happier.

Should the RGB24 and RGB32 defines be done at once, like below,
or separately?  Since as it is right now, if one's not there, the other
won't be either.


---
 libavcodec/libutvideo.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/libutvideo.h b/libavcodec/libutvideo.h
index a9387e1..024478d 100644
--- a/libavcodec/libutvideo.h
+++ b/libavcodec/libutvideo.h
@@ -31,6 +31,11 @@
 #include <utvideo/utvideo.h>
 #include <utvideo/Codec.h>

+#if !defined(UTVF_RGB24_WIN)
+#define UTVF_RGB24_WIN UTVF_NFCC_BGR_BU
+#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