1. 23 Feb, 2016 1 commit
    • Anton Khirnov's avatar
      lavf: replace AVStream.codec with AVStream.codecpar · 9200514a
      Anton Khirnov authored
      Currently, AVStream contains an embedded AVCodecContext instance, which
      is used by demuxers to export stream parameters to the caller and by
      muxers to receive stream parameters from the caller. It is also used
      internally as the codec context that is passed to parsers.
      
      In addition, it is also widely used by the callers as the decoding (when
      demuxer) or encoding (when muxing) context, though this has been
      officially discouraged since Libav 11.
      
      There are multiple important problems with this approach:
          - the fields in AVCodecContext are in general one of
              * stream parameters
              * codec options
              * codec state
            However, it's not clear which ones are which. It is consequently
            unclear which fields are a demuxer allowed to set or a muxer allowed to
            read. This leads to erratic behaviour depending on whether decoding or
            encoding is being performed or not (and whether it uses the AVStream
            embedded codec context).
          - various synchronization issues arising from the fact that the same
            context is used by several different APIs (muxers/demuxers,
            parsers, bitstream filters and encoders/decoders) simultaneously, with
            there being no clear rules for who can modify what and the different
            processes being typically delayed with respect to each other.
          - avformat_find_stream_info() making it necessary to support opening
            and closing a single codec context multiple times, thus
            complicating the semantics of freeing various allocated objects in the
            codec context.
      
      Those problems are resolved by replacing the AVStream embedded codec
      context with a newly added AVCodecParameters instance, which stores only
      the stream parameters exported by the demuxers or read by the muxers.
      9200514a
  2. 27 Jul, 2015 1 commit
  3. 09 May, 2015 1 commit
    • wm4's avatar
      id3v2: Do not export empty APIC description · 379e5603
      wm4 authored
      APIC tags always have a description. Tag writers obviously leave it
      empty if there is no description. In this case, libavformat would export
      "" as title. Do not set the title instead.
      379e5603
  4. 24 Feb, 2015 1 commit
  5. 14 Jan, 2015 3 commits
  6. 03 May, 2013 1 commit
  7. 02 May, 2013 1 commit
  8. 30 Apr, 2013 1 commit
  9. 04 Apr, 2013 1 commit
  10. 08 Mar, 2013 1 commit
  11. 22 Nov, 2012 1 commit
  12. 17 Sep, 2012 2 commits
  13. 12 Aug, 2012 1 commit
  14. 08 Aug, 2012 1 commit
  15. 07 Aug, 2012 1 commit
  16. 07 Jul, 2012 1 commit
  17. 01 Apr, 2012 1 commit
  18. 29 Mar, 2012 1 commit
  19. 20 Mar, 2012 1 commit
  20. 29 Feb, 2012 3 commits
  21. 10 Dec, 2011 1 commit
  22. 02 Nov, 2011 1 commit
  23. 13 Oct, 2011 2 commits
  24. 11 Oct, 2011 1 commit
  25. 03 Oct, 2011 3 commits
  26. 21 Sep, 2011 1 commit
    • David Goldwich's avatar
      id3v2: add support for non-text and GEOB type tag frames · 7a019dff
      David Goldwich authored
      This extends the ID3v2 parser to allow for reading of non-text (i.e.
      other than T***) meta tag frames providing a ff_id3v2_read_all()
      function. An additional data structure 'ID3v2ExtraMeta' is introduced
      for these tags since AVDictionary is string oriented and unsuitable
      for binary data.
      
      A parser for tag frames of type GEOB is implemented, which is needed
      to extract keyring information from encrypted OMA files. GEOB data
      is parsed into 'ID3v2ExtraMetaGEOB' data structures.
      
      The routine to decode characters from different encodings to UTF-8,
      formerly part of the read_ttag() function, is moved to its own
      function. Because some tag frames contain subparts of unknown length,
      the function is now also able to read until a null character is found.
      In addition, the function now takes care of allocating a buffer long
      enough to hold the decoded characters.
      Signed-off-by: 's avatarDavid Goldwich <david.goldwich@gmail.com>
      Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
      7a019dff
  27. 08 Jun, 2011 1 commit
  28. 26 May, 2011 2 commits
  29. 22 Mar, 2011 2 commits
  30. 21 Mar, 2011 1 commit