summaryrefslogtreecommitdiff
path: root/libavformat/mpegenc.c
Commit message (Collapse)AuthorAge
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* 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.
* mpegenc: use the CPB props side dataAnton Khirnov2015-12-06
| | | | | Do not access the encoder options, since it makes no sense when the AVStream codec context is not the encoding context.
* Replace av_dlog with normal av_log at trace levelVittorio Giovara2015-04-19
| | | | This applies to every library where performance is not critical.
* avformat: Don't anonymously typedef structsDiego Biurrun2015-02-14
|
* mpeg: Remove unused fieldLuca Barbato2015-01-07
|
* mpegenc: prevent a NULL pointer dereferenceVittorio Giovara2014-11-24
| | | | | CC: libav-stable@libav.org Bug-Id: CID 29261
* mpegenc: limit the maximum muxrateAnton Khirnov2014-08-27
| | | | | | It is written to the file as a 22-bit value. CC: libav-stable@libav.org
* mpeg: Write H264 streams at offset 2Luca Barbato2014-08-26
| | | | It hints that the content is H264 according to HD-DVD.
* mpeg: Suppress a compiler warning on callback typeLuca Barbato2014-08-09
|
* mpeg: K&R formatting cosmeticsLuca Barbato2014-08-08
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-23
|
* avformat: Add av_cold attributes to init functions missing themDiego Biurrun2013-05-05
|
* avformat: Convert some commented-out printf/av_log instances to av_dlogDiego Biurrun2012-10-01
|
* avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö2012-09-04
| | | | 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
|
* avformat: Drop pointless "format" from container long namesDiego Biurrun2012-07-30
|
* mpegenc: remove disabled codeDiego Biurrun2012-07-21
|
* mpegmux: add stuffing to avoid incomplete PCM framesJanne Grunau2012-05-06
| | | | Fixes https://bugzilla.libav.org/show_bug.cgi?id=244
* libavformat: Set the default for the max_delay option to -1Martin Storsjö2012-03-20
| | | | | | | | | | Make the muxers/demuxers that use the field handle the default -1 in the same way as 0. This allows distinguishing an intentionally set 0 from the default value where the user hasn't set it. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavf: remove disabled FF_API_PRELOAD cruftAnton Khirnov2012-01-27
|
* lavf: remove disabled FF_API_MUXRATE cruftAnton Khirnov2012-01-27
|
* mpegenc: simplify muxrate calculationJanne Grunau2012-01-02
| | | | | | | The fate-h264-bsf-mp4toannexb failures were caused by an integer overflow of the unneeded multiplication. Inspired by patch by: Michael Niedermayer <michaelni@gmx.at>
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-30
| | | | It's supposed to be called only from (de)muxers.
* mpegenc: add preload private option.Anton Khirnov2011-10-25
| | | | Deprecate AVFormatContext.preload.
* mpegenc/mpegtsenc: add muxrate private options.Anton Khirnov2011-10-17
| | | | Deprecate AVFormatContext.mux_rate.
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-17
| | | | It's more readable and less prone to breakage.
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Replace DEBUG_SEEK/DEBUG_SI + av_log combinations by av_dlog.Diego Biurrun2011-06-10
|
* Remove stray extra arguments from av_dlog() invocations.Diego Biurrun2011-06-02
|
* Replace some commented-out debug printf() / av_log() messages with av_dlog().Diego Biurrun2011-04-29
|
* 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.
* Avoid negative SCR in mpeg ps muxer.Michael Niedermayer2010-10-16
| | | | | | Fixes a scr issue reported with dvdauthor ([FFmpeg-user] FFMPEG encoded MPEG-2 video causes error in DVDAuthor) Originally committed as revision 25512 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a space between the else and { in mpegenc.c in the line i added.Michael Niedermayer2010-10-08
| | | | Originally committed as revision 25414 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Warn if muxing mpeg ps is attempted without a VBV buffer size.Michael Niedermayer2010-10-07
| | | | Originally committed as revision 25385 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Init SCR in mpeg muxer based on first DTS.Michael Niedermayer2010-10-07
| | | | | | This fixes issues if the first DTS is far away from 0. Originally committed as revision 25383 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.Jean-Daniel Dupas2010-03-31
| | | | | | Patch by Jean-Daniel Dupas, devlists shadowlab org Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* put_bits can only reliably write up to 31 bit bits, above it relies onReimar Döffinger2009-10-01
| | | | | | | | undefined shift behaviour. Document this, fix the assert and add a put_bits32 to handle writing 32 bits and use that where necessary. Originally committed as revision 20124 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set restrictions on packet_size, as per ISO-11172 / H-222 specificationsRonald S. Bultje2009-06-17
| | | | | | | | | (max packet size should fit in 13 bits as a kB value, so 1<<23, plus the header which is 10 bytes), and as per mpegenc.c internal assumptions (min packet size is 20 bytes). See "[PATCH] make packet_size in AVFormatContext unsigned" thread. Originally committed as revision 19215 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fail if stream fifo could not be allocatedBaptiste Coudurier2009-05-22
| | | | Originally committed as revision 18897 to svn://svn.ffmpeg.org/ffmpeg/trunk
* correctly check for audio streams in mpeg ps muxer, fix multiple audio tracksBaptiste Coudurier2009-05-21
| | | | Originally committed as revision 18891 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename pbBufPtr() to put_bits_ptr().Stefano Sabatini2009-04-13
| | | | | | | The new name is more readable and consistent with the FFmpeg naming style. Originally committed as revision 18497 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
* Reorder arguments for av_fifo_generic_read to be more logical andReimar Döffinger2009-03-09
| | | | | | consistent with av_fifo_generic_write. Originally committed as revision 17914 to svn://svn.ffmpeg.org/ffmpeg/trunk