Commit df4203ac authored by Stephen Hutchinson's avatar Stephen Hutchinson Committed by Carl Eugen Hoyos

Fix compilation with libutvideo version 12.0.0

Reviewed-by: Derek Buitenhuis
parent 5ce023b7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment