mp_image: remove unneeded PL_HAVE_LIBDOVI check

This function is always available, if libplacebo is compiled without
libdovi it is no-op.
This commit is contained in:
Kacper Michajłow 2024-05-20 21:16:47 +02:00 committed by sfan5
parent e56054bc40
commit 072d0ac836
1 changed files with 0 additions and 2 deletions

View File

@ -1116,10 +1116,8 @@ struct mp_image *mp_image_from_av_frame(struct AVFrame *src)
sd = av_frame_get_side_data(src, AV_FRAME_DATA_DOVI_RPU_BUFFER); sd = av_frame_get_side_data(src, AV_FRAME_DATA_DOVI_RPU_BUFFER);
if (sd) { if (sd) {
#ifdef PL_HAVE_LIBDOVI
pl_hdr_metadata_from_dovi_rpu(&dst->params.color.hdr, sd->buf->data, pl_hdr_metadata_from_dovi_rpu(&dst->params.color.hdr, sd->buf->data,
sd->buf->size); sd->buf->size);
#endif
} }
#endif #endif