Skip to content

Fix to handle transmission of same PS multiple times

Matteo Naccari requested to merge matteon/HTM:decode_multiple_ps into main
  • Streams captured with (e.g.) an iPhone might periodically transmit the VPS/SPS/PPS. The decoder (configured for either MV-HEVC or 3D-HEVC) would crash due to some pointers in TComPic and TAppDecTop pointing to memory areas which have been meanwhile deleted in the storePS method.
  • This fix addresses both cases where a parameter set, whose id has already been transmitted before, is sent again either in its identical form or with some field values modified.
  • In the former case no memory deletion, meither new copies are performed (being the data exactly the same). In the latter case, the field values of the current parameter set are overriden by the new ones using the copy constructor. Nalu's data and then copied as in the original implementation.

Merge request reports