Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-21 12:15:44 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-03-24 10:00:57 +0300
commita77beea6c8c168683f882aa71c63d69cafa1d5c7 (patch)
treec8c1ec1e7c7d0bc3640708b149cd0de872c983fa /libavutil/frame.c
parent54127cc427920e48921e05e328d9ce475ae9d38d (diff)
avutil/frame: Deprecate av_get_colorspace_name()
Contrary to av_color_space_name() it doesn't even support newer colorspaces. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r--libavutil/frame.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c
index 75e347bf2f..31a2117b82 100644
--- a/libavutil/frame.c
+++ b/libavutil/frame.c
@@ -120,6 +120,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
#endif
+#if FF_API_COLORSPACE_NAME
const char *av_get_colorspace_name(enum AVColorSpace val)
{
static const char * const name[] = {
@@ -135,7 +136,7 @@ const char *av_get_colorspace_name(enum AVColorSpace val)
return NULL;
return name[val];
}
-
+#endif
static void get_frame_defaults(AVFrame *frame)
{
if (frame->extended_data != frame->data)