diff options
author | James Almer <jamrial@gmail.com> | 2023-05-17 22:39:57 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2023-05-18 08:45:23 -0300 |
commit | 63767b79a570404628b2521b83104108b7b6884c (patch) | |
tree | ba05301188d4deb51854721e0e60bfca4edb0323 /libavutil | |
parent | 01d9a84ef58c2d0d89958b18420483b058ac9dd1 (diff) | |
download | ffmpeg-63767b79a570404628b2521b83104108b7b6884c.tar.gz |
avutil/frame: deprecate palette_has_changed
Not only this is information that relies on the concept of a sequence of
frames, which is completely out of place as a field in AVFrame, but there are
no known or intended uses of this field.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/frame.c | 4 | ||||
-rw-r--r-- | libavutil/frame.h | 3 | ||||
-rw-r--r-- | libavutil/version.h | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index 97d40208c8..b0d8eebdde 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -284,7 +284,11 @@ FF_DISABLE_DEPRECATION_WARNINGS dst->top_field_first = src->top_field_first; FF_ENABLE_DEPRECATION_WARNINGS #endif +#if FF_API_PALETTE_HAS_CHANGED +FF_DISABLE_DEPRECATION_WARNINGS dst->palette_has_changed = src->palette_has_changed; +FF_ENABLE_DEPRECATION_WARNINGS +#endif dst->sample_rate = src->sample_rate; dst->opaque = src->opaque; dst->pkt_dts = src->pkt_dts; diff --git a/libavutil/frame.h b/libavutil/frame.h index ed3f199ce1..bb634008ea 100644 --- a/libavutil/frame.h +++ b/libavutil/frame.h @@ -528,10 +528,13 @@ typedef struct AVFrame { int top_field_first; #endif +#if FF_API_PALETTE_HAS_CHANGED /** * Tell user application that palette has changed from previous frame. */ + attribute_deprecated int palette_has_changed; +#endif #if FF_API_REORDERED_OPAQUE /** diff --git a/libavutil/version.h b/libavutil/version.h index 341bcbf188..c41c6afeac 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -117,6 +117,7 @@ #define FF_API_FRAME_PKT (LIBAVUTIL_VERSION_MAJOR < 59) #define FF_API_INTERLACED_FRAME (LIBAVUTIL_VERSION_MAJOR < 59) #define FF_API_FRAME_KEY (LIBAVUTIL_VERSION_MAJOR < 59) +#define FF_API_PALETTE_HAS_CHANGED (LIBAVUTIL_VERSION_MAJOR < 59) /** * @} |