shared/media-playback: Fix corrupt MaxCLL when reading HDR metadata

The content light level metadata was being read incorrectly by taking
the address of the data pointer instead of casting the pointer itself.
This resulted in interpreting the pointer address as the MaxCLL value,
leading to extremely large values.
This commit is contained in:
tfo
2026-02-04 14:50:35 -05:00
committed by Ryan Foster
parent e652dfa5ca
commit cef6d12c3a
@@ -119,7 +119,7 @@ static uint16_t get_max_luminance(const AVStream *stream)
break;
}
case AV_PKT_DATA_CONTENT_LIGHT_LEVEL: {
const AVContentLightMetadata *const md = (AVContentLightMetadata *)&sd->data;
const AVContentLightMetadata *const md = (AVContentLightMetadata *)sd->data;
max_luminance = md->MaxCLL;
break;
}