mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-27 19:02:13 +08:00
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>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user