1. 31 Mar, 2016 1 commit
  2. 15 Mar, 2016 1 commit
    • Luca Barbato's avatar
      matroska: Support V_QUICKTIME as written in the specification · 8b4b1c1e
      Luca Barbato authored
      Check if the size is written the first 4 bytes and read the next 4
      as fourcc candidate, fallback checking the initial for 4 bytes.
      
      "The CodecPrivate contains all additional data that is stored in the
      'stsd' (sample description) atom in the QuickTime file after the
      mandatory video descriptor structure (starting with the size and FourCC
      fields)"
      
      CC: libav-stable@libav.org
      8b4b1c1e
  3. 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
  4. 19 Feb, 2016 1 commit
  5. 07 Dec, 2015 1 commit
  6. 28 Nov, 2015 1 commit
  7. 26 Oct, 2015 1 commit
  8. 29 Sep, 2015 1 commit
  9. 27 Jul, 2015 1 commit
  10. 11 Jul, 2015 1 commit
  11. 12 May, 2015 1 commit
  12. 18 Apr, 2015 1 commit
  13. 08 Apr, 2015 1 commit
    • wm4's avatar
      matroskadec: export cover art correctly · c4d37cd9
      wm4 authored
      Generally, libavformat exports cover art pictures as video streams with
      1 packet and AV_DISPOSITION_ATTACHED_PIC set. Only matroskadec exported
      it as attachment with codec_id set to AV_CODEC_ID_MJPEG.
      
      Obviously, this should be consistent, so change the Matroska demuxer to
      export a AV_DISPOSITION_ATTACHED_PIC pseudo video stream.
      
      Matroska muxing is probably incorrect too. I know that it can create
      broken files with an audio track and just 1 video frame when e.g.
      remuxing mp3 with APIC to mkv. But for now this commit does not change
      anything about muxing, and also continues to write attachments with
      AV_CODEC_ID_MJPEG should the muxer application have special knowledge
      that the Matroska is broken in this way.
      Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
      c4d37cd9
  14. 12 Mar, 2015 1 commit
  15. 14 Feb, 2015 1 commit
  16. 15 Dec, 2014 1 commit
    • Xiaohan Wang's avatar
      matroskadec: Fix read-after-free in matroska_read_seek() · 490a3ebf
      Xiaohan Wang authored
      In matroska_read_seek(), |tracks| is assigned at the begining of the
      function. However, functions like matroska_parse_cues() could reallocate
      the tracks and invalidate |tracks|.
      
      This assigns |tracks| only before using it, so that it will not get
      invalidated elsewhere.
      
      Bug-Id: chromium/427266
      490a3ebf
  17. 24 Oct, 2014 2 commits
  18. 28 Aug, 2014 2 commits
  19. 15 Aug, 2014 2 commits
  20. 29 Jul, 2014 1 commit
  21. 02 Jul, 2014 1 commit
  22. 22 Jun, 2014 1 commit
  23. 28 May, 2014 3 commits
  24. 30 Apr, 2014 1 commit
  25. 11 Mar, 2014 1 commit
  26. 07 Mar, 2014 2 commits
  27. 21 Nov, 2013 2 commits
  28. 31 Oct, 2013 1 commit
  29. 24 Sep, 2013 1 commit
  30. 17 Sep, 2013 1 commit
  31. 10 Sep, 2013 1 commit
  32. 03 Sep, 2013 1 commit
  33. 10 Jun, 2013 1 commit