summaryrefslogtreecommitdiffstats
path: root/video/mp_image.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/mp_image.c')
-rw-r--r--video/mp_image.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index fcf265f699..c82fe0e21c 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -645,9 +645,6 @@ void mp_image_copy_fields_from_av_frame(struct mp_image *dst,
}
-// Not strictly related, but was added in a similar timeframe.
-#define HAVE_AVFRAME_COLORSPACE HAVE_AVCODEC_CHROMA_POS_API
-
// Copy properties and data of the mp_image into the AVFrame, without taking
// care of memory management issues.
void mp_image_copy_fields_to_av_frame(struct AVFrame *dst,
@@ -671,10 +668,8 @@ void mp_image_copy_fields_to_av_frame(struct AVFrame *dst,
if (src->fields & MP_IMGFIELD_REPEAT_FIRST)
dst->repeat_pict = 1;
-#if HAVE_AVFRAME_COLORSPACE
dst->colorspace = mp_csp_to_avcol_spc(src->params.colorspace);
dst->color_range = mp_csp_levels_to_avcol_range(src->params.colorlevels);
-#endif
}
static void frame_free(void *p)