1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00
FFmpeg/tests/ref/lavf
Anton Khirnov 9200514ad8 lavf: replace AVStream.codec with AVStream.codecpar
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.
2016-02-23 17:01:58 +01:00
..
aiff avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
alaw avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
asf asfenc: use codec descriptors instead of AVCodecs to write codec info 2014-05-01 09:26:20 +02:00
au avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
avi avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
bmp avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
dpx dpx: always write the image offset 2014-12-08 13:29:18 +00:00
dv_fmt FATE: avoid channel mixing in lavf-dv_fmt 2012-04-24 15:55:45 -04:00
flv_fmt lavf: replace AVStream.codec with AVStream.codecpar 2016-02-23 17:01:58 +01:00
gif ffmpeg: deprecate loop_input and loop_output options 2011-07-08 19:58:19 +02:00
gxf mpeg2: add sequence display extension information 2014-06-06 15:38:10 +01:00
jpg avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
mkv lavf: switch to AVStream.time_base as the hint for the muxer timebase 2014-06-18 15:12:34 +02:00
mmf fate: update the mmf reference 2013-05-14 18:50:27 +02:00
mov movenc: Make tkhd "enabled" flag QuickTime compatible 2013-08-23 09:55:42 +02:00
mpg avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
mulaw avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
mxf mpeg2: add sequence display extension information 2014-06-06 15:38:10 +01:00
mxf_d10 mpeg12enc: always write closed gops for intra only outputs 2016-02-22 19:08:56 -05:00
nut nutenc: do not use has_b_frames 2015-01-27 09:15:07 +01:00
ogg oggenc: Fix the EOS flag 2014-05-28 21:51:38 +03:00
pam avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
pbmpipe Place regression test output files in subdirs per family 2010-03-02 21:41:52 +00:00
pcx avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
pgm avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
pgmpipe Place regression test output files in subdirs per family 2010-03-02 21:41:52 +00:00
pixfmt swscale: fix JPEG-range YUV scaling artifacts. 2011-06-14 09:46:49 -04:00
png avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
ppm avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
ppmpipe Place regression test output files in subdirs per family 2010-03-02 21:41:52 +00:00
rm avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
rso avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
sgi sgienc: Do not end RLE lines with 0s 2015-11-24 09:05:01 -05:00
sox avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
sunrast avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
swf Place regression test output files in subdirs per family 2010-03-02 21:41:52 +00:00
tga avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
tiff avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
ts mpeg2: add sequence display extension information 2014-06-06 15:38:10 +01:00
voc avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
voc_s16 avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
wav avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
xwd avconv: make -t insert trim/atrim filters. 2013-04-30 11:53:12 +02:00
yuv4mpeg Place regression test output files in subdirs per family 2010-03-02 21:41:52 +00:00