| Branch: | Revision:

ffmpeg / libavformat / mpegenc.c @ 333e8943

History | View | Annotate | Download (42.2 KB)

# Date Author Comment
2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

b7f2fdde 03/17/2011 02:59 AM Anton Khirnov

avio: rename put_flush_packet -> avio_flush

Signed-off-by: Ronald S. Bultje <>

77eb5504 02/21/2011 07:25 PM Anton Khirnov

avio: avio: avio_ prefixes for put_* functions

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 <>

ae628ec1 02/20/2011 01:37 PM Anton Khirnov

avio: rename ByteIOContext to AVIOContext.

Signed-off-by: Ronald S. Bultje <>

c6610a21 01/26/2011 10:10 PM Diego Elio Pettenò

Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.

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.

94bdb1f8 10/16/2010 09:31 PM Michael Niedermayer

Avoid negative SCR in mpeg ps muxer.
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://

d03b93e3 10/08/2010 03:41 PM Michael Niedermayer

Add a space between the else and { in mpegenc.c in the line i added.

Originally committed as revision 25414 to svn://

34b9e5bc 10/07/2010 01:57 AM Michael Niedermayer

Warn if muxing mpeg ps is attempted without a VBV buffer size.

Originally committed as revision 25385 to svn://

9b272e32 10/07/2010 12:32 AM Michael Niedermayer

Init SCR in mpeg muxer based on first DTS.
This fixes issues if the first DTS is far away from 0.

Originally committed as revision 25383 to svn://

cc947f04 03/31/2010 12:29 PM Jean-Daniel Dupas

Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.

Patch by Jean-Daniel Dupas, devlists shadowlab org

Originally committed as revision 22744 to svn://

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

Originally committed as revision 22735 to svn://

43d7c611 10/01/2009 03:40 PM Reimar Döffinger

put_bits can only reliably write up to 31 bit bits, above it relies on
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://

f4ca612f 06/17/2009 07:04 PM Ronald S. Bultje

Set restrictions on packet_size, as per ISO-11172 / H-222 specifications
(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...

4969cc0b 05/22/2009 07:11 PM Baptiste Coudurier

fail if stream fifo could not be allocated

Originally committed as revision 18897 to svn://

24dc7776 05/21/2009 10:33 PM Baptiste Coudurier

correctly check for audio streams in mpeg ps muxer, fix multiple audio tracks

Originally committed as revision 18891 to svn://

fb53b4a0 04/13/2009 04:59 PM Stefano Sabatini

Rename pbBufPtr() to put_bits_ptr().
The new name is more readable and consistent with the FFmpeg naming

Originally committed as revision 18497 to svn://

b2755007 04/12/2009 08:35 AM Stefano Sabatini

Split bitstream.h, put the bitstream writer stuff in the new file

Originally committed as revision 18461 to svn://

3898eed8 03/09/2009 05:47 PM Reimar Döffinger

Reorder arguments for av_fifo_generic_read to be more logical and
consistent with av_fifo_generic_write.

Originally committed as revision 17914 to svn://

41dd680d 03/08/2009 02:16 PM Michael Niedermayer

Allocate AVFifoBuffer through the fifo API to reduce future API/ABI issues.
Yes this breaks ABI/API but ive already broken it and will bump avutil major

Originally committed as revision 17869 to svn://

406792e7 01/19/2009 03:46 PM Diego Biurrun

cosmetics: Remove pointless period after copyright statement non-sentences.

Originally committed as revision 16684 to svn://

49fb20cb 01/14/2009 05:19 PM Aurelien Jacobs

replace all occurrence of ENABLE_ by the corresponding CONFIG_, HAVE_ or ARCH_
and remove all ENABLE_ definitions.

Originally committed as revision 16600 to svn://

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 16590 to svn://

274335e7 08/26/2008 01:29 AM Michael Niedermayer

vertical align

Originally committed as revision 14972 to svn://

745b39d5 08/19/2008 06:49 PM Stefano Sabatini

Replace invocations of av_fifo_realloc(), which is going to be
deprecated, with corresponding invocations of av_fifo_realloc2().

Originally committed as revision 14848 to svn://

14b70628 08/03/2008 04:42 PM Justin Ruggles

cosmetics: make all references to AC-3 capitalized and hyphenated

Originally committed as revision 14523 to svn://

bde15e74 06/03/2008 04:20 PM Stefano Sabatini

Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
patch by Stefano Sabatini, stefano.sabatini-lala
along with some spelling/consistency fixes for the long names by me

Originally committed as revision 13649 to svn://

57783b07 05/28/2008 10:00 PM Baptiste Coudurier

use av_fifo_generic_write, old func is deprecated

Originally committed as revision 13511 to svn://

fa3b9818 05/25/2008 11:04 PM Michael Niedermayer

Ensure that one can store X bytes in a fifo of size X.
Fixed issue417.

Originally committed as revision 13405 to svn://

0871ae1a 05/25/2008 10:20 PM Michael Niedermayer

Make av_fifo*_read() ignore the available amount of data.
This is more efficient as in practice the check is redundant most of the
time. Callers which do not know if enough data is available have to check
it with av_fifo_size(). Doing the check in *read() means the caller has...

245976da 05/09/2008 11:56 AM Diego Biurrun

Use full path for #includes from another directory.

Originally committed as revision 13098 to svn://

febc8fad 01/31/2008 12:27 AM Baptiste Coudurier

init to 0, fix warning: mpegenc.c:1022: warning: 'avail_space' may be used uninitialized in this function

Originally committed as revision 11683 to svn://

87be0d12 01/31/2008 12:25 AM Baptiste Coudurier

add parenthesis, fix warning: mpegenc.c:303: warning: suggest parentheses around && within ||

Originally committed as revision 11682 to svn://

899681cd 11/21/2007 07:41 AM Björn Axelsson

Use dynamically allocated ByteIOContext in AVFormatContext

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://

6369638b 09/16/2007 11:00 PM Aurelien Jacobs

loosen dependencies over allformats.h

Originally committed as revision 10513 to svn://

6a058d90 09/05/2007 05:25 PM Michael Niedermayer

revert 10409
there is no need for put_timestamp to be exported it is not used outside the
PES code

Originally committed as revision 10410 to svn://

8baaee65 09/05/2007 05:14 PM Michael Niedermayer

export put_timestamp()
this will be needed for spliting the PES muxer code out

Originally committed as revision 10409 to svn://

c4194cc6 07/15/2007 06:24 PM Michael Niedermayer

remove likely wrong reseting of align_iframe
same md5 with a short -t dvd encoding
fixes streamcopy of dvd

Originally committed as revision 9687 to svn://

372a80d1 07/14/2007 03:12 PM Aurelien Jacobs

Avoid using undefined symbols.
This fixes the following option set:
--disable-encoders --disable-decoders --disable-parsers --disable-bsfs
--disable-muxers --disable-demuxers --disable-protocols

Originally committed as revision 9650 to svn://

5d385746 06/21/2007 09:53 AM Baptiste Coudurier

use allformats.h

Originally committed as revision 9384 to svn://

c4f27438 06/21/2007 09:49 AM Baptiste Coudurier

remove now useless ifdef

Originally committed as revision 9383 to svn://

2abe5a01 06/21/2007 09:39 AM Baptiste Coudurier

split mpeg ps and variants muxer and demuxer, I'll clean more in a few minutes, lpcm freq tab is left static const in mpeg.h for now until we have more code in common

Originally committed as revision 9382 to svn://