1. 18 May, 2020 5 commits
  2. 17 May, 2020 4 commits
    • Andreas Rheinhardt's avatar
      avformat/hlsenc: Don't segfault on uncommon names · 3ab6a923
      Andreas Rheinhardt authored
      The parsing process of the AVOpt-enabled string controlling the mapping
      of input streams to variant streams is roughly as follows: Space and tab
      separate variant stream group maps while the entries in each variant
      stream group map are separated by ','.
      
      The parsing process of each variant stream group proceeded as follows:
      At first the number of occurences of "a:", "v:" and "s:" in each variant
      stream group is calculated so that one can can allocate an array of
      streams with this number of entries. Then the string is split along ','
      and each substring is parsed. If such a substring starts with "a:", "s:"
      or "v:" it is treated as stream specifier and (if there is a correct
      number after ':') a stream of the variant stream is mapped to one of the
      actual input streams.
      
      Nothing actually guarantees that the number of streams allocated initially
      equals the number of streams that are mapped to an actual input stream.
      These numbers can differ if e.g. the name, the sgroup, agroup or ccgroup
      of the variant stream contain "a:", "s:" or "v:".
      
      The problem hereby is that the rest of the code presumes these numbers
      to be equal and segfaults if it isn't (because the corresponding input
      stream is NULL).
      
      This commit fixes this by modifying the initial counting process to only
      count occurences of "a:", "s:" or "v:" that are at the beginning or that
      immediately follow a ','.
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
      3ab6a923
    • James Almer's avatar
    • Michael Niedermayer's avatar
      avformat/mpegts: Shuffle avio_seek · cd74af14
      Michael Niedermayer authored
      This avoids accessing an old, no longer valid buffer.
      Fixes: out of array access
      Fixes: crash_audio-2020
      Found-by: 's avatarle wu <shoulewoba@gmail.com>
      Reviewed-by: 's avatarMarton Balint <cus@passwd.hu>
      Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
      cd74af14
    • Derek Buitenhuis's avatar
      avformat/dump: Use int64_t for intermediate time values · 5d9ce445
      Derek Buitenhuis authored
      Prevents wrap-around to negative values while calculating the duration string.
      
      Before:
      
          Duration: -411422:-59:-42.17, start: 0.000000, bitrate: 0 kb/s
      
      After:
      
          Duration: 781623:28:34.17, start: 0.000000, bitrate: 0 kb/s
      Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
      5d9ce445
  3. 16 May, 2020 7 commits
  4. 15 May, 2020 19 commits
  5. 14 May, 2020 5 commits