1. 14 Mar, 2020 1 commit
  2. 27 Feb, 2020 1 commit
  3. 07 Jan, 2020 2 commits
    • Marton Balint's avatar
      avformat: remove more unneeded avio_flush() calls · f4a8ea7f
      Marton Balint authored
      These instances are simply redundant or present because avio_flush() used to be
      required before doing a seekback. That is no longer the case, aviobuf code does
      the flush automatically on seek.
      
      This only affects code which is either disabled for streaming IO contexts or
      does no seekbacks after the flush, so this change should have no adverse effect
      on streaming.
      Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
      f4a8ea7f
    • Marton Balint's avatar
      avformat: remove avio_flush() calls from the end of write_header functions · 4bf90e09
      Marton Balint authored
      To make it consistent with other muxers.
      
      The user can still control the generic flushing behaviour after write_header
      (same way as after packets) using the -flush_packets option, the default
      typically means to flush unless a non-streamed file output is used.
      
      Therefore this change should have no adverse effect on streaming, even if it is
      assumed that the first packet has a clean buffer, so small seekbacks within the
      output buffer work even when the IO context is not seekable.
      Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
      4bf90e09
  4. 25 Oct, 2019 1 commit
  5. 21 Oct, 2019 1 commit
  6. 27 Nov, 2017 1 commit
  7. 02 Aug, 2017 1 commit
  8. 07 Jul, 2017 1 commit
  9. 31 Jan, 2017 1 commit
  10. 08 Nov, 2016 1 commit
  11. 30 Sep, 2016 1 commit
    • Anton Khirnov's avatar
      lavf: fix usage of AVIOContext.seekable · 83548fe8
      Anton Khirnov authored
      It is supposed to be a flag. The only currently defined value is
      AVIO_SEEKABLE_NORMAL, but other ones may be added in the future.
      However all the current lavf code treats this field as a bool (mainly
      for historical reasons).
      Change all those cases to properly check for AVIO_SEEKABLE_NORMAL.
      83548fe8
  12. 20 Jul, 2016 1 commit
  13. 22 May, 2016 2 commits
  14. 13 Mar, 2016 3 commits
  15. 08 Mar, 2016 1 commit
  16. 06 Mar, 2016 1 commit
  17. 05 Mar, 2016 2 commits
  18. 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
  19. 21 Feb, 2016 2 commits
  20. 20 Feb, 2016 1 commit
  21. 19 Feb, 2016 1 commit
  22. 18 Feb, 2016 2 commits
  23. 12 Sep, 2015 1 commit
  24. 18 Aug, 2015 1 commit
  25. 28 May, 2015 1 commit
  26. 23 May, 2015 1 commit
  27. 19 Mar, 2015 4 commits
  28. 03 Mar, 2015 1 commit
  29. 14 Feb, 2015 1 commit
  30. 19 Nov, 2014 1 commit