Skip to content

Commit 4522c64

Browse files
committed
mp_image: do not skip MEL-only Dolby Vision metadata w/EL
Improve the EL check to accept RPUs that indicate EL usage (profiles 4 and 7) if the original bitstream and metadata are MEL-only. This needs libplacebo commit 9ce8bcff ("util/libav: do not bail on MEL-only RPUs w/EL"). [FIXME: new API version in libplacebo and API availabilty check]
1 parent 02254b9 commit 4522c64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

video/mp_image.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,8 +1095,7 @@ struct mp_image *mp_image_from_av_frame(struct AVFrame *src)
10951095
if (sd) {
10961096
#ifdef PL_HAVE_LAV_DOLBY_VISION
10971097
const AVDOVIMetadata *metadata = (const AVDOVIMetadata *)sd->buf->data;
1098-
const AVDOVIRpuDataHeader *header = av_dovi_get_header(metadata);
1099-
if (header->disable_residual_flag) {
1098+
if (pl_can_map_avdovi_metadata(metadata)) {
11001099
dst->dovi = dovi = av_buffer_alloc(sizeof(struct pl_dovi_metadata));
11011100
MP_HANDLE_OOM(dovi);
11021101
#if PL_API_VER >= 343

0 commit comments

Comments
 (0)