- 23 Feb, 2016 1 commit
-
-
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.
-
- 24 Jan, 2016 1 commit
-
-
Anton Khirnov authored
Some (de)muxers open additional files beyond the main IO context. Currently, they call avio_open() directly, which prevents the caller from using custom IO for such streams. This commit adds callbacks to AVFormatContext that default to avio_open2()/avio_close(), but can be overridden by the caller. All muxers and demuxers using AVIO are switched to using those callbacks instead of calling avio_open()/avio_close() directly. (de)muxers that use the URLProtocol layer directly instead of AVIO remain unconverted for now. This should be fixed in later commits.
-
- 26 Oct, 2015 1 commit
-
-
Luca Barbato authored
`av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
-
- 14 Feb, 2015 1 commit
-
-
Diego Biurrun authored
-
- 14 Jan, 2015 1 commit
-
-
Vittorio Giovara authored
Previously the image sequence was always starting from the minimum number rather than the requested one. CC: libav-stable@libav.org
-
- 24 Oct, 2014 1 commit
-
-
Vittorio Giovara authored
CC: libav-stable@libav.org Bug-Id: CID 1087077
-
- 04 May, 2013 1 commit
-
-
Diego Biurrun authored
-
- 29 Nov, 2012 1 commit
-
-
Diego Biurrun authored
Also introduce local img_ namespace to simplify debugging.
-
- 08 Oct, 2012 1 commit
-
-
Anton Khirnov authored
-
- 12 Sep, 2012 1 commit
-
-
Tomas Härdin authored
Zero sized files would cause the contexts to leak away. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-
- 04 Sep, 2012 1 commit
-
-
Martin Storsjö authored
Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 07 Aug, 2012 1 commit
-
-
Anton Khirnov authored
-
- 24 Jun, 2012 1 commit
-
-
Mashiat Sarker Shakkhar authored
Currently if a pattern is given we look for up to the fifth file name in the sequence. This option sets that limit to an arbitrary number. Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
- 22 Feb, 2012 1 commit
-
-
Paul B Mahol authored
Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
-
- 21 Feb, 2012 1 commit
-
-
Diego Biurrun authored
-
- 17 Feb, 2012 1 commit
-
-
Aneesh Dogra authored
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
-
- 27 Jan, 2012 3 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
-
- 23 Jan, 2012 1 commit
-
-
Paul B Mahol authored
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
-
- 10 Dec, 2011 1 commit
-
-
Diego Biurrun authored
-
- 30 Nov, 2011 1 commit
-
-
Anton Khirnov authored
It's supposed to be called only from (de)muxers.
-
- 13 Nov, 2011 1 commit
-
-
Martin Storsjö authored
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
- 06 Nov, 2011 1 commit
-
-
Reimar Döffinger authored
All current usages of it are incompatible with localization. For example strcasecmp("i", "I") != 0 is possible, but would break many of the places where it is used. Instead use our own implementations that always treat the data as ASCII. Signed-off-by: Martin Storsjö <martin@martin.st>
-
- 19 Oct, 2011 1 commit
-
-
Anton Khirnov authored
Trivial replacements with sed are done in this commit: sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
-
- 12 Oct, 2011 1 commit
-
-
Anton Khirnov authored
-
- 05 Oct, 2011 1 commit
-
-
Anton Khirnov authored
This is needed by the new AVOptions API.
-
- 15 Aug, 2011 1 commit
-
-
Anton Khirnov authored
AVFormatParameters are converted into corresponding private options in av_open_input_file/stream() compat wrappers, so accessing them from demuxers is redundant.
-
- 08 Jul, 2011 1 commit
-
-
Anton Khirnov authored
Deprecate AVFormatContext.loop_input.
-
- 21 Jun, 2011 1 commit
-
-
Kamil Nowosad authored
-
- 13 Jun, 2011 1 commit
-
-
Peter Ross authored
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
- 06 Jun, 2011 3 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
-
- 19 Apr, 2011 2 commits
-
-
Stefano Sabatini authored
The problem with url_exist() is that it tries to open a resource in RDONLY mode. If the file is a FIFO and there is already a reading client, the open() call will hang. By using avio_check() with access mode of 0, the second reading process will check if the file exists without attempting to open it, thus avoiding the lock. Fix issue #1663. Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
Stefano Sabatini authored
Make AVIO_FLAG_ access constants work as flags, and in particular fix the behavior of functions (such as avio_check()) which expect them to be flags rather than modes. This breaks API.
-
- 08 Apr, 2011 1 commit
-
-
Anton Khirnov authored
It doesn't look very useful as a public function.
-
- 07 Apr, 2011 1 commit
-
-
Anton Khirnov authored
-
- 19 Mar, 2011 1 commit
-
-
Mans Rullgard authored
Signed-off-by: Mans Rullgard <mans@mansr.com>
-
- 17 Mar, 2011 1 commit
-
-
Anton Khirnov authored
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
-