1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

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

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);
if (sd) {
#ifdef PL_HAVE_LIBDOVI
pl_hdr_metadata_from_dovi_rpu(&dst->params.color.hdr, sd->buf->data,
sd->buf->size);
#endif
}
#endif