[FFmpeg-devel] [PATCH 2/2] lavc/packet: schedule AV_PKT_DATA_QUALITY_FACTOR for removal

Anton Khirnov anton at khirnov.net
Wed Mar 27 12:46:46 EET 2024


It is unused internally and has been marked as deprecated a long time
ago.
---
 libavcodec/packet.h        | 2 ++
 libavcodec/version_major.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/libavcodec/packet.h b/libavcodec/packet.h
index b0ba3baea2..a9a41576da 100644
--- a/libavcodec/packet.h
+++ b/libavcodec/packet.h
@@ -341,7 +341,9 @@ enum AVPacketSideDataType {
     AV_PKT_DATA_NB
 };
 
+#if FF_API_QUALITY_FACTOR
 #define AV_PKT_DATA_QUALITY_FACTOR AV_PKT_DATA_QUALITY_STATS //DEPRECATED
+#endif
 
 /**
  * This structure stores auxiliary information for decoding, presenting, or
diff --git a/libavcodec/version_major.h b/libavcodec/version_major.h
index ab1f4511b4..63df40e9dd 100644
--- a/libavcodec/version_major.h
+++ b/libavcodec/version_major.h
@@ -47,5 +47,6 @@
 #define FF_API_AVCODEC_CLOSE       (LIBAVCODEC_VERSION_MAJOR < 62)
 #define FF_API_BUFFER_MIN_SIZE     (LIBAVCODEC_VERSION_MAJOR < 62)
 #define FF_API_VDPAU_ALLOC_GET_SET (LIBAVCODEC_VERSION_MAJOR < 62)
+#define FF_API_QUALITY_FACTOR      (LIBAVCODEC_VERSION_MAJOR < 62)
 
 #endif /* AVCODEC_VERSION_MAJOR_H */
-- 
2.43.0



More information about the ffmpeg-devel mailing list