1. 09 Jul, 2019 2 commits
    • Andreas Rheinhardt's avatar
      truehd_core: Correct output size · cbe23e40
      Andreas Rheinhardt authored
      If truehd_core strips Atmos data away, three parts of the output differ
      in size compared to the input access unit: a) The major_sync_info block
      if the extra_channel_meaning_data is present, as the newly written
      output never contains said block; b) the substream_directory (because
      entries relating to discarded substreams are discarded, too); and c)
      the actual substream data. b) and c) have already been taken into account
      when choosing the size of the output packet, but a) has been forgotten.
      
      This is also the reason behind the end of the output buffer having been
      uninitialized until 801d78f0. The workaround added in said commit has
      been removed, too.
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
      cbe23e40
    • Andreas Rheinhardt's avatar
      truehd_core: Disable 16-channel presentation · 99c19115
      Andreas Rheinhardt authored
      The most serious bit of the substream_info header field (in a mayor sync
      packet) indicates whether a 16-channel presentation is present in the
      bitstream. If set, the extended_substream_info header field contains
      information about the 16-channel presentation. This presentation always
      uses substream 3, a substream that is discarded by truehd_core. So
      substream_info needs to be changed to no longer indicate the presence
      of a 16-channel presentation in order for truehd_core's output to be
      consistent. This is implemented in this commit.
      
      This change also makes MediaInfo no longer display the presence of Atmos
      in the output of truehd_core.
      
      Also, set the (now irrelevant) extended_substream_info field to zero as
      this seems to be the common value for ordinary TrueHD.
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
      99c19115
  2. 08 Jul, 2019 38 commits