• 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
Name
Last commit
Last update
..
vsynth1-asv1 Loading commit data...
vsynth1-asv2 Loading commit data...
vsynth1-cljr Loading commit data...
vsynth1-dnxhd-1080i Loading commit data...
vsynth1-dnxhd-720p Loading commit data...
vsynth1-dnxhd-720p-10bit Loading commit data...
vsynth1-dnxhd-720p-rd Loading commit data...
vsynth1-dv Loading commit data...
vsynth1-dv-411 Loading commit data...
vsynth1-dv-50 Loading commit data...
vsynth1-ffv1 Loading commit data...
vsynth1-ffvhuff Loading commit data...
vsynth1-flashsv Loading commit data...
vsynth1-flv Loading commit data...
vsynth1-h261 Loading commit data...
vsynth1-h263 Loading commit data...
vsynth1-h263-obmc Loading commit data...
vsynth1-h263p Loading commit data...
vsynth1-huffyuv Loading commit data...
vsynth1-jpegls Loading commit data...
vsynth1-ljpeg Loading commit data...
vsynth1-mjpeg Loading commit data...
vsynth1-mpeg1 Loading commit data...
vsynth1-mpeg1b Loading commit data...
vsynth1-mpeg2 Loading commit data...
vsynth1-mpeg2-422 Loading commit data...
vsynth1-mpeg2-idct-int Loading commit data...
vsynth1-mpeg2-ilace Loading commit data...
vsynth1-mpeg2-ivlc-qprd Loading commit data...
vsynth1-mpeg2-thread Loading commit data...
vsynth1-mpeg2-thread-ivlc Loading commit data...
vsynth1-mpeg4 Loading commit data...
vsynth1-mpeg4-adap Loading commit data...
vsynth1-mpeg4-adv Loading commit data...
vsynth1-mpeg4-error Loading commit data...
vsynth1-mpeg4-nr Loading commit data...
vsynth1-mpeg4-qpel Loading commit data...
vsynth1-mpeg4-qprd Loading commit data...
vsynth1-mpeg4-rc Loading commit data...
vsynth1-mpeg4-thread Loading commit data...
vsynth1-msmpeg4 Loading commit data...
vsynth1-msmpeg4v2 Loading commit data...
vsynth1-prores Loading commit data...
vsynth1-qtrle Loading commit data...
vsynth1-rgb Loading commit data...
vsynth1-roqvideo Loading commit data...
vsynth1-rv10 Loading commit data...
vsynth1-rv20 Loading commit data...
vsynth1-svq1 Loading commit data...
vsynth1-v210 Loading commit data...
vsynth1-v210-10 Loading commit data...
vsynth1-wmv1 Loading commit data...
vsynth1-wmv2 Loading commit data...
vsynth1-yuv Loading commit data...
vsynth2-asv1 Loading commit data...
vsynth2-asv2 Loading commit data...
vsynth2-cljr Loading commit data...
vsynth2-dnxhd-1080i Loading commit data...
vsynth2-dnxhd-720p Loading commit data...
vsynth2-dnxhd-720p-10bit Loading commit data...
vsynth2-dnxhd-720p-rd Loading commit data...
vsynth2-dv Loading commit data...
vsynth2-dv-411 Loading commit data...
vsynth2-dv-50 Loading commit data...
vsynth2-ffv1 Loading commit data...
vsynth2-ffvhuff Loading commit data...
vsynth2-flashsv Loading commit data...
vsynth2-flv Loading commit data...
vsynth2-h261 Loading commit data...
vsynth2-h263 Loading commit data...
vsynth2-h263-obmc Loading commit data...
vsynth2-h263p Loading commit data...
vsynth2-huffyuv Loading commit data...
vsynth2-jpegls Loading commit data...
vsynth2-ljpeg Loading commit data...
vsynth2-mjpeg Loading commit data...
vsynth2-mpeg1 Loading commit data...
vsynth2-mpeg1b Loading commit data...
vsynth2-mpeg2 Loading commit data...
vsynth2-mpeg2-422 Loading commit data...
vsynth2-mpeg2-idct-int Loading commit data...
vsynth2-mpeg2-ilace Loading commit data...
vsynth2-mpeg2-ivlc-qprd Loading commit data...
vsynth2-mpeg2-thread Loading commit data...
vsynth2-mpeg2-thread-ivlc Loading commit data...
vsynth2-mpeg4 Loading commit data...
vsynth2-mpeg4-adap Loading commit data...
vsynth2-mpeg4-adv Loading commit data...
vsynth2-mpeg4-error Loading commit data...
vsynth2-mpeg4-nr Loading commit data...
vsynth2-mpeg4-qpel Loading commit data...
vsynth2-mpeg4-qprd Loading commit data...
vsynth2-mpeg4-rc Loading commit data...
vsynth2-mpeg4-thread Loading commit data...
vsynth2-msmpeg4 Loading commit data...
vsynth2-msmpeg4v2 Loading commit data...
vsynth2-prores Loading commit data...
vsynth2-qtrle Loading commit data...
vsynth2-rgb Loading commit data...
vsynth2-roqvideo Loading commit data...
vsynth2-rv10 Loading commit data...
vsynth2-rv20 Loading commit data...
vsynth2-svq1 Loading commit data...
vsynth2-v210 Loading commit data...
vsynth2-v210-10 Loading commit data...
vsynth2-wmv1 Loading commit data...
vsynth2-wmv2 Loading commit data...
vsynth2-yuv Loading commit data...