summaryrefslogtreecommitdiff
path: root/libavformat/adtsenc.c
Commit message (Collapse)AuthorAge
* lavf: replace AVStream.codec with AVStream.codecparAnton Khirnov2016-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* avformat: Don't anonymously typedef structsDiego Biurrun2015-02-14
|
* adts: Return more meaningful error codesNidhi Makhijani2014-08-21
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavf: add the notimestamps flag to the muxers missing itAnton Khirnov2014-06-18
|
* lavf: Don't explicitly flush after each written packet in muxersClément Bœsch2013-09-16
| | | | | | | | Since 596e5d4783, this is not necessary anymore. It also allows to actually disable the flushing, improving write performance (but possibly giving worse latency in real-time streaming). Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* Improve descriptiveness of a number of codec and container long namesDiego Biurrun2012-07-30
|
* adtsenc: Don't expose the muxer internals to the rest of lavfJindrich Makovicka2012-06-03
| | | | | | | | This isn't required any longer, when the mpegts muxer uses it as a proper chained muxer. Signed-off-by: Jindrich Makovicka <makovick@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* latmdec: fix audio specific config parsingJanne Grunau2011-12-03
| | | | | | | | | Pass the correct size in bits to mpeg4audio_get_config and add a flag to disable parsing of the sync extension when the size is not known. Latm with AudioMuxVersion 0 does not specify the size of the audio specific config. Data after the audio specific config can be misinterpreted as sync extension resulting in random and wrong configs.
* adtsenc: Check frame size.Alex Converse2011-11-28
| | | | | | Inspired by work from: Michael Niedermayer <michaelni@gmx.at>. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* lavc: use avpriv_ prefix for some mpeg4audio symbols used in lavf.Anton Khirnov2011-10-20
| | | | | Specifically, ff_mpeg4audio_sample_rates, ff_mpeg4audio_get_config and ff_copy_pce_data
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-17
| | | | It's more readable and less prone to breakage.
* adts: Fix PCE copying.Alex Converse2011-07-06
| | | | | | Parse the extension flag bit when reading the MPEG4 AudioSpecificConfig. This has nothing to do with SBR/PS contradictory to what was noted when it was removed.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avio: rename put_flush_packet -> avio_flushAnton Khirnov2011-03-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio: avio_ prefixes for put_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | In the name of consistency: put_byte -> avio_w8 put_<type> -> avio_w<type> put_buffer -> avio_write put_nbyte will be made private put_tag will be merged with avio_put_str Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: rename ByteIOContext to AVIOContext.Anton Khirnov2011-02-20
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-26
| | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts.
* Cosmetics: whitespaceAlex Converse2010-07-07
| | | | Originally committed as revision 24093 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Allow remuxing of explicitly signalled AAC files into ADTS.Alex Converse2010-07-01
| | | | | | | The ADTS output files are not explicitly signaled because the format does not support explicit signalling. Originally committed as revision 23935 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In mpegts muxer, write adts header if aac bitstream does not contain itBaptiste Coudurier2010-03-09
| | | | Originally committed as revision 22355 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use av_log_missing_feature in the ADTS encoder. (Pseudo reverts r19173).Alex Converse2009-06-29
| | | | Originally committed as revision 19299 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Do not include libavcodec/internal.h in the ADTS muxer.Alex Converse2009-06-12
| | | | Originally committed as revision 19173 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add the .adts file extension to the ADTS muxer.Alex Converse2009-06-03
| | | | Originally committed as revision 19085 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add PCE support to the ADTS muxer.Alex Converse2009-05-13
| | | | Originally committed as revision 18818 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-13
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Split bitstream.h, put the bitstream writer stuff in the new fileStefano Sabatini2009-04-12
| | | | | | put_bits.h. Originally committed as revision 18461 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ADTS: Increased protection against writing illegal/nonsense files.Alex Converse2009-03-06
| | | | Originally committed as revision 17859 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add libavcodec/internal.h include to avoid warning: implicit declaration ofPatrik Kullman2009-02-13
| | | | | | | | function ‘ff_log_missing_feature’ Patch by Patrik Kullman ( patrik yes nu ) Originally committed as revision 17220 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Report the illegal audio object type, not it offset by 1.Alex Converse2009-02-13
| | | | | | Discussed and OKed at http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/2009-February/019860.html Originally committed as revision 17198 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ADTS Muxer: Refuse to write illegal ADTS files by checking validity of headerAlex Converse2009-02-12
| | | | | | | | members and erroring out if invalid Patch by Alex Converse ( alex converse gmail com ) Originally committed as revision 17193 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.Stefano Sabatini2008-06-03
| | | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste.it along with some spelling/consistency fixes for the long names by me Originally committed as revision 13649 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full path for #includes from another directory.Diego Biurrun2008-05-09
| | | | Originally committed as revision 13098 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use dynamically allocated ByteIOContext in AVFormatContextBjörn Axelsson2007-11-21
| | | | | | | patch by: Björn Axelsson, bjorn d axelsson a intinor d se thread: [PATCH] Remove static ByteIOContexts, 06 nov 2007 Originally committed as revision 11071 to svn://svn.ffmpeg.org/ffmpeg/trunk
* update my email addressMåns Rullgård2007-07-05
| | | | Originally committed as revision 9489 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove empty write trailer functionsVitor Sessak2007-06-27
| | | | | | patch by Vitor: [vitor1001 gmail com] Originally committed as revision 9442 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change license headers to say 'FFmpeg' instead of 'this program/this library'Diego Biurrun2006-10-07
| | | | | | and fix GPL/LGPL version mismatches. Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
* allow individual selection of muxers and demuxersMåns Rullgård2006-07-10
| | | | Originally committed as revision 5707 to svn://svn.ffmpeg.org/ffmpeg/trunk
* give AVInput/OutputFormat structs consistent namesMåns Rullgård2006-07-09
| | | | Originally committed as revision 5697 to svn://svn.ffmpeg.org/ffmpeg/trunk
* skip 0byte packetsBaptiste Coudurier2006-03-27
| | | | Originally committed as revision 5231 to svn://svn.ffmpeg.org/ffmpeg/trunk
* flush packetsBaptiste Coudurier2006-03-27
| | | | Originally committed as revision 5226 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ff_asts_init needs to be inside #ifdef CONFIG_MUXERS, remove some misplacedLuca Abeni2006-02-17
| | | | | | | CONFIG_MUXERS from adtsenc.c, fixes compilation with --disable-muxers. patch by Luca Abeni, lucabe72 &at& email &dot& it Originally committed as revision 5030 to svn://svn.ffmpeg.org/ffmpeg/trunk
* generate adts frame headers if requiredMåns Rullgård2006-02-10
Originally committed as revision 4970 to svn://svn.ffmpeg.org/ffmpeg/trunk