From 3474ec01e752d59b4d3d8f585218624aa50774bd Mon Sep 17 00:00:00 2001 From: Cosmin Stejerean Date: Tue, 18 Nov 2025 13:45:37 -0800 Subject: [PATCH] avutil/dovi_meta - fix L11 dovi metadata definition deprecate the incorrect fields in AVDOVIDmLevel11 and schedule them for removal --- libavutil/dovi_meta.h | 8 ++++++++ libavutil/version.h | 1 + 2 files changed, 9 insertions(+) diff --git a/libavutil/dovi_meta.h b/libavutil/dovi_meta.h index 5e8a1e43d7..18aebaaca8 100644 --- a/libavutil/dovi_meta.h +++ b/libavutil/dovi_meta.h @@ -279,12 +279,20 @@ typedef struct AVDOVIDmLevel11 { uint8_t content_type; uint8_t whitepoint; uint8_t reference_mode_flag; +#if FF_API_DOVI_L11_INVALID_PROPS + attribute_deprecated uint8_t sharpness; + attribute_deprecated uint8_t noise_reduction; + attribute_deprecated uint8_t mpeg_noise_reduction; + attribute_deprecated uint8_t frame_rate_conversion; + attribute_deprecated uint8_t brightness; + attribute_deprecated uint8_t color; +#endif } AVDOVIDmLevel11; typedef struct AVDOVIDmLevel254 { diff --git a/libavutil/version.h b/libavutil/version.h index 264c13a1b8..9ed38790c7 100644 --- a/libavutil/version.h +++ b/libavutil/version.h @@ -111,6 +111,7 @@ #define FF_API_OPT_INT_LIST (LIBAVUTIL_VERSION_MAJOR < 61) #define FF_API_OPT_PTR (LIBAVUTIL_VERSION_MAJOR < 61) #define FF_API_CPU_FLAG_FORCE (LIBAVUTIL_VERSION_MAJOR < 61) +#define FF_API_DOVI_L11_INVALID_PROPS (LIBAVUTIL_VERSION_MAJOR < 61) /** * @}