1. 09 Feb, 2020 1 commit
  2. 07 Jul, 2019 3 commits
  3. 25 Feb, 2019 1 commit
    • Andreas Rheinhardt's avatar
      libavcodec/cbs: Stop needlessly reallocating the units array · b8c45bbc
      Andreas Rheinhardt authored
      Currently, a fragment's unit array is constantly reallocated during
      splitting of a packet. This commit changes this: One can keep the units
      array by distinguishing between the number of allocated and the number
      of valid units in the units array.
      
      The more units a packet is split into, the bigger the benefit.
      So MPEG-2 benefits the most; for a video coming from an NTSC-DVD
      (usually 32 units per frame) the average cost of cbs_insert_unit (for a
      single unit) went down from 6717 decicycles to 450 decicycles (based
      upon 10 runs with 4194304 runs each); if each packet consists of only
      one unit, it went down from 2425 to 448; for a H.264 video where most
      packets contain nine units, it went from 4431 to 450.
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@googlemail.com>
      b8c45bbc
  4. 20 Mar, 2018 1 commit
  5. 18 Mar, 2018 1 commit
  6. 20 Feb, 2018 2 commits
    • Mark Thompson's avatar
      cbs: Refcount all the things! · ce5870a3
      Mark Thompson authored
      This makes it easier for users of the CBS API to get alloc/free right -
      all subelements use the buffer API so that it's clear how to free them.
      It also allows eliding some redundant copies: the packet -> fragment copy
      disappears after this change if the input packet is refcounted, and more
      codec-specific cases are now possible (but not included in this patch).
      ce5870a3
    • Mark Thompson's avatar
      cbs: Allocate the context inside the init function · 26513529
      Mark Thompson authored
      ... instead of making callers allocate it themselves.  This is more
      consistent with other APIs in libav.
      26513529
  7. 12 Nov, 2017 1 commit
  8. 17 Oct, 2017 2 commits
  9. 12 Sep, 2017 1 commit
    • Mark Thompson's avatar
      h264_metadata: Fix double-free · c42b62d1
      Mark Thompson authored
      Whether the udu string should be freed depends on whether the SEI it
      gets added to was created internally by cbs or externally by the bsf.
      The current code frees it twice in the former case.
      c42b62d1
  10. 13 Aug, 2017 1 commit