- 15 Jul, 2016 1 commit
-
-
Anton Khirnov authored
-
- 05 May, 2016 1 commit
-
-
Diego Biurrun authored
-
- 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.
-
- 12 Dec, 2015 2 commits
-
-
Anton Khirnov authored
The latter does not require a full AVCodecContext and still provides all the functionality needed here.
-
Anton Khirnov authored
Almost all the places from which this function is called already check the header manually and in the two that don't (the mp3 muxer) the check should not cause any problems.
-
- 13 Jul, 2015 1 commit
-
-
Luca Barbato authored
Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
- 11 Jul, 2015 1 commit
-
-
Luca Barbato authored
Try to parse up to 4 packets to find the closest packet. Reported-By: jan.schlueter@ofai.at
-
- 11 Mar, 2015 1 commit
-
-
Vittorio Giovara authored
Rather than having an unitialized context on the stack, allocate it with defaults and free it when unneeded. CC: libav-stable@libav.org
-
- 07 Dec, 2014 1 commit
-
-
Luca Barbato authored
Having more than 10 consecutive frames decoded as mp3 should be considered a clear signal that the sample is mp3 and not mpegps. Reported-By:
Florian Iragne <florian@iragne.fr> CC: libav-stable@libav.org
-
- 24 Oct, 2014 1 commit
-
-
Anton Khirnov authored
The quality scale field is only supposed to be present if the fourth bit is set. In practice, lame always sets it, but other tools might not. CC:libav-stable@libav.org
-
- 17 Apr, 2014 2 commits
-
-
Alessandro Ghedini authored
Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
Alessandro Ghedini authored
Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
- 24 Mar, 2014 1 commit
-
-
Anton Khirnov authored
-
- 12 Sep, 2013 1 commit
-
-
Vittorio Giovara authored
Signed-off-by:
Diego Biurrun <diego@biurrun.de>
-
- 04 May, 2013 1 commit
-
-
Diego Biurrun authored
-
- 19 Apr, 2013 1 commit
-
-
Michael Niedermayer authored
Fixes seeking without a Xing/Info header. CC: libav-stable@libav.org Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
- 08 Mar, 2013 1 commit
-
-
Alexander Kojevnikov authored
When parsing the Xing/Info tag, don't set the bit rate if it's an Info tag. When parsing the stream, don't override the bit rate if it's already set, otherwise calculate the mean bit rate from parsed frames. This way, the bit rate will be set correctly both for CBR and VBR streams. CC:libav-stable@libav.org Signed-off-by:
Anton Khirnov <anton@khirnov.net>
-
- 19 Sep, 2012 2 commits
-
-
Anton Khirnov authored
-
Anton Khirnov authored
-
- 07 Aug, 2012 1 commit
-
-
Anton Khirnov authored
-
- 30 Jul, 2012 1 commit
-
-
Diego Biurrun authored
-
- 28 Jul, 2012 3 commits
-
-
Anton Khirnov authored
Don't invent a bogus EIO error. The code now doesn't check for ret == 0, but that check is redundant, av_get_packet() never returns 0.
-
Anton Khirnov authored
-
Anton Khirnov authored
-
- 30 May, 2012 1 commit
-
-
Ronald S. Bultje authored
-
- 06 Apr, 2012 1 commit
-
-
Martin Storsjö authored
Also add missing trailing commas, break long codec_tag lines and add spaces in codec_tag declarations. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
- 01 Mar, 2012 1 commit
-
-
Ingo Brückl authored
The fields "Number of Bytes" and "Number of Frames" are mixed up. "Bytes" come first, "Frames" behind. Signed-off-by:
Michael Niedermayer <michaelni@gmx.at> Signed-off-by:
Alex Converse <alex.converse@gmail.com>
-
- 27 Jan, 2012 1 commit
-
-
Anton Khirnov authored
-
- 30 Nov, 2011 1 commit
-
-
Anton Khirnov authored
It's supposed to be called only from (de)muxers.
-
- 20 Oct, 2011 1 commit
-
-
Anton Khirnov authored
Specifically, ff_mpa_freq_tab, ff_mpa_bitrate_tab, ff_mpa_decode_header, ff_mpegaudio_decode_header.
-
- 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)/'
-
- 17 Jul, 2011 1 commit
-
-
Anton Khirnov authored
It's more readable and less prone to breakage.
-
- 03 Jul, 2011 1 commit
-
-
Mans Rullgard authored
Signed-off-by:
Mans Rullgard <mans@mansr.com>
-
- 08 Jun, 2011 1 commit
-
-
Anton Khirnov authored
-
- 21 Mar, 2011 1 commit
-
-
Anton Khirnov authored
Signed-off-by:
Ronald S. Bultje <rsbultje@gmail.com>
-
- 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>
-
- 04 Mar, 2011 1 commit
-
-
Anton Khirnov authored
Signed-off-by:
Ronald S. Bultje <rsbultje@gmail.com>
-
- 01 Mar, 2011 1 commit
-
-
Anton Khirnov authored
Signed-off-by:
Ronald S. Bultje <rsbultje@gmail.com>
-
- 21 Feb, 2011 1 commit
-
-
Anton Khirnov authored
In the name of consistency: get_byte -> avio_r8 get_<type> -> avio_r<type> get_buffer -> avio_read get_partial_buffer will be made private later get_strz is left out becase I want to change it later to return something useful. Signed-off-by:
Ronald S. Bultje <rsbultje@gmail.com>
-