Opened 9 months ago

Last modified 6 months ago

#10541 new defect

HDR10+ not cleared between frames, stale data returned from SEI context

Reported by: kasper93 Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
AV_FRAME_DATA_DYNAMIC_HDR_PLUS (and probably few others) side data is not cleared when no longer signaled and returned stale last seen value. It is per frame HDR metadata and should no longer be attached if not present in user data.

From what I can see in code H2645SEI->dynamic_hdr_plus.info persist even if there is no longer associated user data.

I'm not sure where is the proper place to clear it, but we need to clear it at some point. The same probably affects dynamic_hdr_vivid.

Test files can be found here:
https://dvb.org/specifications/verification-validation/hdr-test-content/

For example DVB_2160p50_HDR_with_Switched_2094-40_DM.ts toggles HDR10+ signaling ever 1 minute. 0-1 min: HDR10+ is preset, 1-2 min: not present, 2-3 min: present again.

Current behavior:
During playback HDR10+ side data is still present in 1-2 minute range

Expected behavior:
HDR10+ side data is not attached when HDR10+ is no longer signaled.

Change History (2)

comment:1 by Balling, 9 months ago

LOL. In HDR10 the static metadata also should change as the frame changes.

Note: See TracTickets for help on using tickets.