mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 02:34:23 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user