1. 17 Nov, 2019 1 commit
    • Andreas Rheinhardt's avatar
      avcodec/cbs: Factor out common code for writing units · 7c92eaac
      Andreas Rheinhardt authored
      All cbs-functions to write units share a common pattern:
      1. They check whether they have a write buffer (that is used to store
      the unit's data until the needed size becomes known after writing the
      unit when a dedicated buffer will be allocated).
      2. They use this buffer for a PutBitContext.
      3. The (codec-specific) writing takes place through the PutBitContext.
      4. The return value is checked. AVERROR(ENOSPC) here always indicates
      that the buffer was too small and leads to a reallocation of said
      buffer.
      5. The final buffer will be allocated and the data copied.
      
      This commit factors this common code out in a single function in cbs.c.
      Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
      7c92eaac
  2. 17 Oct, 2017 1 commit
  3. 31 Jan, 2016 1 commit
  4. 06 Oct, 2015 1 commit
  5. 12 Sep, 2015 1 commit
  6. 20 Apr, 2015 1 commit
  7. 19 Apr, 2015 1 commit
  8. 23 Jan, 2013 1 commit
  9. 28 Mar, 2012 1 commit
  10. 19 Mar, 2011 1 commit
  11. 20 Apr, 2010 1 commit
  12. 01 Feb, 2009 1 commit
  13. 31 Aug, 2008 1 commit
  14. 17 Oct, 2007 1 commit
  15. 05 Jul, 2007 1 commit
  16. 17 Jun, 2007 2 commits
  17. 16 Jun, 2007 1 commit
  18. 07 Oct, 2006 1 commit
  19. 12 Jan, 2006 1 commit
  20. 17 Dec, 2005 1 commit
  21. 25 Oct, 2003 1 commit
  22. 23 Oct, 2003 1 commit
  23. 22 Oct, 2003 1 commit
  24. 03 Mar, 2003 1 commit
  25. 11 Feb, 2003 1 commit
  26. 20 Nov, 2002 1 commit
  27. 19 Nov, 2002 2 commits
  28. 25 Oct, 2002 1 commit
  29. 06 Oct, 2002 1 commit
  30. 25 May, 2002 1 commit
  31. 13 Aug, 2001 1 commit