# HG changeset patch # User aurel # Date 1283336788 0 # Node ID 3bca212d6f517231fec4d800f564548b09b240eb # Parent 601fbb943758842a7cd9f11b15897744686e7196 add FF_API_PALETTE_CONTROL define to drop usage of AVPaletteControl and delay this transition to v54 as it is currently not functional diff -r 601fbb943758 -r 3bca212d6f51 avcodec.h --- a/avcodec.h Wed Sep 01 02:12:03 2010 +0000 +++ b/avcodec.h Wed Sep 01 10:26:28 2010 +0000 @@ -43,6 +43,14 @@ #define LIBAVCODEC_IDENT "Lavc" AV_STRINGIFY(LIBAVCODEC_VERSION) +/** + * Those FF_API_* defines are not part of public API. + * They may change, break or disappear at any time. + */ +#ifndef FF_API_PALETTE_CONTROL +#define FF_API_PALETTE_CONTROL (LIBAVCODEC_VERSION_MAJOR < 54) +#endif + #define AV_NOPTS_VALUE INT64_C(0x8000000000000000) #define AV_TIME_BASE 1000000 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE} @@ -2025,12 +2033,14 @@ */ int lmax; +#if FF_API_PALETTE_CONTROL /** * palette control structure * - encoding: ??? (no palette-enabled encoder yet) * - decoding: Set by user. */ struct AVPaletteControl *palctrl; +#endif /** * noise reduction strength @@ -2852,7 +2862,7 @@ int linesize[4]; ///< number of bytes per line } AVPicture; -#if LIBAVCODEC_VERSION_MAJOR < 53 +#if FF_API_PALETTE_CONTROL /** * AVPaletteControl * This structure defines a method for communicating palette changes