1. 18 Dec, 2018 1 commit
  2. 22 Jun, 2017 1 commit
  3. 19 Jun, 2017 1 commit
  4. 21 Jul, 2016 2 commits
  5. 20 Jul, 2016 1 commit
  6. 12 Jul, 2016 1 commit
  7. 11 Jul, 2016 1 commit
  8. 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
  9. 27 Aug, 2015 1 commit
  10. 09 Jun, 2015 1 commit
  11. 11 May, 2015 1 commit
  12. 15 Feb, 2015 1 commit
  13. 14 Feb, 2015 1 commit
  14. 01 Feb, 2015 2 commits
  15. 14 Dec, 2014 1 commit
  16. 03 Dec, 2014 1 commit
  17. 06 Nov, 2014 1 commit
  18. 29 Oct, 2014 1 commit
  19. 13 Oct, 2014 1 commit
  20. 23 Aug, 2014 1 commit
  21. 22 Aug, 2014 1 commit
  22. 18 Jun, 2014 1 commit
    • Anton Khirnov's avatar
      lavf: switch to AVStream.time_base as the hint for the muxer timebase · 194be1f4
      Anton Khirnov authored
      Previously, AVStream.codec.time_base was used for that purpose, which
      was quite confusing for the callers. This change also opens the path for
      removing AVStream.codec.
      
      The change in the lavf-mkv test is due to the native timebase (1/1000)
      being used instead of the default one (1/90000), so the packets are now
      sent to the crc muxer in the same order in which they are demuxed
      (previously some of them got reordered because of inexact timestamp
      conversion).
      194be1f4
  23. 06 Jun, 2014 1 commit
    • Martin Storsjö's avatar
      oggenc: Set the right AVOption size for the pref_duration option · 103243ca
      Martin Storsjö authored
      On big endian machines, the default value set via the faulty
      AVOption ended up as 2^32 times too big.
      
      This fixes the fate-lavf-ogg test which currently is broken on
      big endian machines, broken since 38313626. Since that commit,
      a final zero-sized packet is written to the ogg muxer in that test,
      which caused different flushing behaviour on little and big endian
      depending on whether the pref_duration option was handled as it
      should or not.
      
      CC: libav-stable@libav.org
      Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
      103243ca
  24. 04 Jun, 2014 1 commit
  25. 28 May, 2014 2 commits
  26. 27 May, 2014 3 commits
  27. 15 May, 2014 1 commit
    • Anton Khirnov's avatar
      lavf: add AVFMT_FLAG_BITEXACT. · 0c1959b0
      Anton Khirnov authored
      Use it instead of checking CODEC_FLAG_BITEXACT in the first stream's
      codec context.
      
      Using codec options inside lavf is fragile and can easily break when the
      muxing codec context is not the encoding context.
      0c1959b0
  28. 04 Apr, 2014 1 commit
  29. 25 Mar, 2014 1 commit
  30. 09 Feb, 2014 1 commit
  31. 01 Dec, 2013 1 commit
  32. 23 Nov, 2013 1 commit
  33. 21 Sep, 2013 1 commit
  34. 28 Jul, 2013 1 commit
  35. 25 Apr, 2013 1 commit