summaryrefslogtreecommitdiff
path: root/libavcodec/version_major.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-21 02:42:48 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-26 03:02:49 +0200
commita02a0e8db492ae91672449ac3be8ff084a903402 (patch)
treec5b5421ec7902f3e0430fc8b2bdd134ec16b2461 /libavcodec/version_major.h
parent832e6563df9bb6ca79b8a9b39c6a7e8dc28808e2 (diff)
downloadffmpeg-a02a0e8db492ae91672449ac3be8ff084a903402.tar.gz
avcodec/avcodec: Deprecate lavc chroma pos API functions
avcodec_enum_to_chroma_pos() and avcodec_chroma_pos_to_enum() deal with enum AVChromaLocation which is defined in lavu. These functions are therefore replaced by av_chroma_location_enum_to_pos() and av_chroma_location_pos_to_enum(). This commit provides the necessary deprecations. Also already make these functions wrappers around the corresponding lavu functions as not doing so would force one to disable deprecation warnings. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/version_major.h')
-rw-r--r--libavcodec/version_major.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/version_major.h b/libavcodec/version_major.h
index d9386792de..12f863deb7 100644
--- a/libavcodec/version_major.h
+++ b/libavcodec/version_major.h
@@ -52,5 +52,6 @@
#define FF_API_SVTAV1_OPTS (LIBAVCODEC_VERSION_MAJOR < 60)
#define FF_API_AYUV_CODECID (LIBAVCODEC_VERSION_MAJOR < 60)
#define FF_API_VT_OUTPUT_CALLBACK (LIBAVCODEC_VERSION_MAJOR < 60)
+#define FF_API_AVCODEC_CHROMA_POS (LIBAVCODEC_VERSION_MAJOR < 60)
#endif /* AVCODEC_VERSION_MAJOR_H */