It's no longer needed after the addition of av_frame_side_data_new_struct()
Signed-off-by: James Almer <jamr...@gmail.com> --- libavutil/hdr_dynamic_vivid_metadata.c | 2 ++ libavutil/hdr_dynamic_vivid_metadata.h | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/libavutil/hdr_dynamic_vivid_metadata.c b/libavutil/hdr_dynamic_vivid_metadata.c index 32da01f587..140a4df4c2 100644 --- a/libavutil/hdr_dynamic_vivid_metadata.c +++ b/libavutil/hdr_dynamic_vivid_metadata.c @@ -33,6 +33,7 @@ AVDynamicHDRVivid *av_dynamic_hdr_vivid_alloc(size_t *size) return hdr_vivid; } +#if FF_API_CREATE_SIDE_DATA AVDynamicHDRVivid *av_dynamic_hdr_vivid_create_side_data(AVFrame *frame) { AVFrameSideData *side_data = av_frame_new_side_data(frame, @@ -45,3 +46,4 @@ AVDynamicHDRVivid *av_dynamic_hdr_vivid_create_side_data(AVFrame *frame) return (AVDynamicHDRVivid *)side_data->data; } +#endif diff --git a/libavutil/hdr_dynamic_vivid_metadata.h b/libavutil/hdr_dynamic_vivid_metadata.h index 4524a81557..0b42ccc7d0 100644 --- a/libavutil/hdr_dynamic_vivid_metadata.h +++ b/libavutil/hdr_dynamic_vivid_metadata.h @@ -21,8 +21,10 @@ #ifndef AVUTIL_HDR_DYNAMIC_VIVID_METADATA_H #define AVUTIL_HDR_DYNAMIC_VIVID_METADATA_H +#include "attributes.h" #include "frame.h" #include "rational.h" +#include "version.h" /** * HDR Vivid three spline params. @@ -334,13 +336,17 @@ typedef struct AVDynamicHDRVivid { */ AVDynamicHDRVivid *av_dynamic_hdr_vivid_alloc(size_t *size); +#if FF_API_CREATE_SIDE_DATA /** * Allocate a complete AVDynamicHDRVivid and add it to the frame. * @param frame The frame which side data is added to. * + * @deprecated use @ref av_frame_side_data_new_struct() * @return The AVDynamicHDRVivid structure to be filled by caller or NULL * on failure. */ +attribute_deprecated AVDynamicHDRVivid *av_dynamic_hdr_vivid_create_side_data(AVFrame *frame); +#endif #endif /* AVUTIL_HDR_DYNAMIC_VIVID_METADATA_H */ -- 2.48.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".