- 26 Feb, 2016 9 commits
-
-
Anton Khirnov authored
It currently just calls av_init_packet(), which does not touch those fields.
-
Anton Khirnov authored
-
Anton Khirnov authored
This will be useful in the following commits.
-
Anton Khirnov authored
Do not pass just a bare AVFormatContext pointer around, wrap it in struct. This will be useful in the following commits.
-
Anton Khirnov authored
-
Anton Khirnov authored
avprobe is not doing any decoding, so this is more correct than printing information from a random codec implementation.
-
Anton Khirnov authored
AVStream.codec is always non-NULL
-
Anton Khirnov authored
Also, remove a stray line (apparently fallout from conflict resolution).
-
Anton Khirnov authored
-
- 25 Feb, 2016 4 commits
-
-
Vittorio Giovara authored
This avoids accessing NULL pointers in case of error.
-
Vittorio Giovara authored
The deinit function in the 'error' section will correctly free everything.
-
Vittorio Giovara authored
-
Vittorio Giovara authored
-
- 24 Feb, 2016 10 commits
-
-
Vittorio Giovara authored
This prefix is reserved for public functions only. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-
Diego Biurrun authored
-
Anton Khirnov authored
The reasoning is the same as for the corresponding qsvenc patch.
-
Maxym Dmytrychenko authored
The QSV runtime expects the sync point address passed to MFXVideoENCODE_EncodeFrameAsync() to be valid until MFXVideoCORE_SyncOperation(). Signed-off-by: Anton Khirnov <anton@khirnov.net>
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
-
Anton Khirnov authored
AVStream.codec is now deprecated. Allocate a separate codec context instead.
-
- 23 Feb, 2016 11 commits
-
-
Anton Khirnov authored
The switch is not yet complete because the parsers and the bistream filters do not have a new AVCodecParam-based API yet.
-
Anton Khirnov authored
Open decoders first, next encoders. This makes sure that that subtitle_header is always set properly, without relying on avformat_find_stream_info() setting it.
-
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.
-
Anton Khirnov authored
-
Anton Khirnov authored
This API is intended to allow passing around codec parameters without using full AVCodecContext (which also contains codec options and encoder/decoder state).
-
Diego Biurrun authored
Some optimized functions reference optimized symbols, so the functions must be explicitly disabled when those symbols are unavailable.
-
Diego Biurrun authored
Some files may be missing for valid reasons, e.g. on compile failure.
-
Diego Biurrun authored
-
Marton Balint authored
Reviewed-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Marton Balint <cus@passwd.hu>
-
Michael Niedermayer authored
Sample-Id: asan_heap-uaf_3660f67_757_cov_1257014655_Hi422FR1_SONY_A.jsv Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
-
Vittorio Giovara authored
First check the context, then check internal option. Drop the ! typo. Introduced in 60f0fde3.
-
- 22 Feb, 2016 6 commits
-
-
Anton Khirnov authored
Should make the default behaviour safer for careless callers that open random untrusted files. Bug-Id: CVE-2016-1897 Bug-Id: CVE-2016-1898
-
Anton Khirnov authored
This way, the decisions about which protocols are available for use in any given situations can be delegated to the caller.
-
Anton Khirnov authored
It will be useful in the following commits.
-
Anton Khirnov authored
Disallow other code to touch it directly, now it's only accessible through a blacklisting/whitelisting function.
-
Anton Khirnov authored
It needs to access the list of protocols directly, so it more properly belongs there.
-
Anton Khirnov authored
It's a more appropriate place for it.
-