1. 22 May, 2020 2 commits
    • Andreas Rheinhardt's avatar
      avformat/matroskaenc: Remove pointless casts · 72baae13
      Andreas Rheinhardt authored
      by using a const void * pointer as an intermediate.
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
      72baae13
    • Andreas Rheinhardt's avatar
      avformat/matroskaenc: Don't use stream side-data size · 68dd1e6a
      Andreas Rheinhardt authored
      av_stream_get_side_data() tells the caller whether a stream has side
      data of a specific type; if present it can also tell the caller the size
      of the side data via an optional argument. The Matroska muxer always
      used this optional argument, although it doesn't really need the size,
      as the relevant side-data are not buffers, but structures. So change
      this.
      
      Furthermore, relying on the size also made the code susceptible to
      a quirk of av_stream_get_side_data(): It only sets the size argument if
      it found side data of the desired type. mkv_write_video_color() checks
      for side-data twice with the same variable for the size without resetting
      the size in between; if the second type of side-data isn't present, the
      size will still be what it was after the first call. This was not
      dangerous in practice, as the check for the existence of the second
      side-data compared the size with the expected size, so it would only be
      problematic if lots of elements were to be added to AVContentLightMetadata.
      Reviewed-by: 's avatarJames Almer <jamrial@gmail.com>
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
      68dd1e6a
  2. 21 May, 2020 18 commits
  3. 20 May, 2020 8 commits
  4. 19 May, 2020 12 commits