- 14 Mar, 2020 1 commit
-
-
Andreas Rheinhardt authored
If an AVFormatContext could be allocated, but white-/blacklists couldn't be copied, the AVFormatContext would leak as it was only accessible through a local variable that goes out of scope when one goes to fail. Furthermore, in case writing a header of a submuxer failed, the options used for said call could leak. Both of these memleaks have been fixed. Signed-off-by:
Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 01 Dec, 2019 1 commit
-
-
Steven Liu authored
Reviewed-by:
Michael Niedermayer <michael@niedermayer.cc> Reviewed-by:
Jun Zhao <barryjzhao@tencent.com> Signed-off-by:
Steven Liu <lq@chinaffmpeg.org>
-
- 20 Mar, 2019 2 commits
-
-
Carl Eugen Hoyos authored
-
Jun Li authored
Calculate bitrate based on fragment size, only applied when bitrate is not set, for example rtsp source. Reviewed-by:
Steven Liu <lq@chinaffmpeg.org> Signed-off-by:
Jun Li <junli1026@gmail.com>
-
- 28 Jan, 2018 1 commit
-
-
Marton Balint authored
Signed-off-by:
Marton Balint <cus@passwd.hu>
-
- 21 Sep, 2017 1 commit
-
-
Carl Eugen Hoyos authored
-
- 01 Sep, 2017 1 commit
-
-
Anton Khirnov authored
(cherry picked from commit 6f554521) Signed-off-by:
James Almer <jamrial@gmail.com>
-
- 04 Jul, 2017 1 commit
-
-
Martin Storsjö authored
Skip the codec_tag altogether here, to let the user (try to) set whichever codec/tag is preferred; the individual chained muxer will reject invalid codecs anyway. (cherry picked from commit 61f589e3) Signed-off-by:
Derek Buitenhuis <derek.buitenhuis@gmail.com>
-
- 02 Jul, 2017 1 commit
-
-
Martin Storsjö authored
Currently, the tags enforced and set on the segmenter muxer level mismatch what the mp4/ismv muxer uses (since 713efb2c). Skip the codec_tag altogether here, to let the user (try to) set whichever codec/tag is preferred; the individual chained muxer will reject invalid codecs anyway. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 11 Feb, 2017 1 commit
-
-
Anton Khirnov authored
-
- 05 May, 2016 1 commit
-
-
Diego Biurrun authored
-
- 24 Mar, 2016 1 commit
-
-
Martin Storsjö authored
Since all URLContexts have the same AVOptions, such AVOptions will be applied on the outermost context only and removed from the dict, while they probably make sense on all contexts. This makes sure that rw_timeout gets propagated to the innermost URLContext (to make sure it gets passed to the tcp protocol, when opening a http connection for instance). Alternatively, such matching options would be kept in the dict and only removed after the ffurl_connect call. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 04 Mar, 2016 1 commit
-
-
Derek Buitenhuis authored
Signed-off-by:
Derek Buitenhuis <derek.buitenhuis@gmail.com>
-
- 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.
-
- 22 Feb, 2016 3 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
They are only written to, never read.
-
- 02 Feb, 2016 1 commit
-
-
Michael Niedermayer authored
Reviewed-by:
Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 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.
-
- 04 Dec, 2015 1 commit
-
-
Clément Bœsch authored
-
- 15 Sep, 2015 1 commit
-
-
Michael Niedermayer authored
-
- 14 Feb, 2015 1 commit
-
-
Diego Biurrun authored
-
- 19 Jan, 2015 1 commit
-
-
Michael Niedermayer authored
This goto wasn't necessary originally, but it should have been added when the write_manifest call was added in 8e276378. CC: libav-stable@libav.org Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 13 Jan, 2015 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 25 Dec, 2014 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 27 Nov, 2014 1 commit
-
-
Martin Storsjö authored
This reverts commit b9d08c77. After taking MoveFileEx into use, we can replace files with renames on windows as well. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 24 Nov, 2014 1 commit
-
-
Martin Storsjö authored
On windows, rename(2) will fail if the target file exists. On unix this trick is used to make sure that people reading the file either will get the full previous file, or the full new version of the file, but no intermediate version. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 25 Oct, 2014 2 commits
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 24 Oct, 2014 1 commit
-
-
Luca Barbato authored
The new function wraps errno so that its value is correctly reported when other functions overwrite it (eg. in case of logging). CC: libav-stable@libav.org Bug-Id: CID 1135748 Signed-off-by:
Vittorio Giovara <vittorio.giovara@gmail.com>
-
- 21 Oct, 2014 1 commit
-
-
Vittorio Giovara authored
CC: libav-stable@libav.org Bug-Id: CID 732248
-
- 12 Oct, 2014 1 commit
-
-
Martin Storsjö authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 06 Oct, 2014 1 commit
-
-
Martin Storsjö authored
This avoids warnings about using the codec time base as time base hint. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 07 Sep, 2014 1 commit
-
-
Martin Storsjö authored
Previously, the returned error codes were intentionally ignored (see fadd3a68), to avoid aborting if the directory already existed. If the mkdir actually failed, this was caught when opening files within the directory fails anyway. By handling the error code here (but explicitly ignoring EEXIST), the error messages and return codes in these cases are more appropriate and less confusing. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 16 Aug, 2014 1 commit
-
-
Reimar Döffinger authored
Get rid of the many, slightly differing, implementations of basically the same thing. Signed-off-by:
Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-
- 24 Jul, 2014 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 07 Jul, 2014 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 06 Jul, 2014 1 commit
-
-
Michael Niedermayer authored
Fixes CID1224285 Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 15 Jun, 2014 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 24 May, 2014 1 commit
-
-
Nidhi Makhijani authored
Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-