[FFmpeg-trac] #10541(avcodec:new): HDR10+ not cleared between frames, stale data returned from SEI context

FFmpeg trac at avcodec.org
Tue Aug 29 13:17:40 EEST 2023


#10541: HDR10+ not cleared between frames, stale data returned from SEI context
----------------------------------+---------------------------------------
             Reporter:  kasper93  |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avcodec   |                  Version:  unspecified
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+---------------------------------------
 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.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10541>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list