Anton Khirnov
dfc2c4d900
lavf: use designated initialisers for all (de)muxers.
...
It's more readable and less prone to breakage.
2011-07-17 06:58:37 +02:00
Martin Storsjö
af79dd36f3
amr: Set the AVFMT_GENERIC_INDEX flag
...
This makes the amr demuxer support seeking, closing roundup
issue 2593.
2011-03-21 21:31:34 +01:00
Martin Storsjö
026fa81de4
amr: Set the pkt->pos field properly to the start of the packet
...
Previously, the field pointed to the second byte of the packet
(which is the first byte of the actual AMR payload).
2011-03-21 21:31:34 +01:00
Martin Storsjö
2890cba8b5
amr: Set the codec->bit_rate field based on the last packet
...
This allows libavformat to guess an estimated duration for
amr files.
For streams with varying bit rates (or with silence descriptors
or "no frame" blocks) the guess is, of course, inaccurate.
2011-03-21 21:31:33 +01:00
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
2011-03-19 13:33:20 +00:00
Anton Khirnov
b7f2fdde74
avio: rename put_flush_packet -> avio_flush
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-03-16 22:59:39 -04:00
Anton Khirnov
66e5b1df36
avio: deprecate url_feof
...
AVIOContext.eof_reached should be used directly instead.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-03-07 17:20:31 -05:00
Anton Khirnov
a2704c9712
avio: add avio_tell macro as a replacement for url_ftell
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-03-04 11:26:57 -05:00
Anton Khirnov
bbc413f943
lavf: replace remaining uses of put_tag with avio_write
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-02-25 14:38:56 -05:00
Anton Khirnov
77eb5504d3
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 <rsbultje@gmail.com>
2011-02-21 14:25:15 -05:00
Anton Khirnov
b7effd4e83
avio: avio_ prefixes for get_* functions
...
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>
2011-02-21 11:23:22 -05:00
Anton Khirnov
ae628ec1fd
avio: rename ByteIOContext to AVIOContext.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
2011-02-20 08:37:15 -05:00
Diego Elio Pettenò
c6610a216e
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.
2011-01-26 22:10:09 +00:00
Martin Storsjö
8bb90c5394
Set frame_size in the amr demuxer
...
Originally committed as revision 25030 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-03 14:59:18 +00:00
Stefano Sabatini
72415b2adb
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://svn.ffmpeg.org/ffmpeg/trunk
2010-03-30 23:30:55 +00:00
Aurelien Jacobs
b250f9c66d
Change semantic of CONFIG_*, HAVE_* and ARCH_*.
...
They are now always defined to either 0 or 1.
Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
2009-01-13 23:44:16 +00:00
Diego Biurrun
8212568a1c
Replace generic CONFIG_MUXERS preprocessor conditionals by more specific
...
CONFIG_FOO_MUXER conditionals where appropriate.
Originally committed as revision 15158 to svn://svn.ffmpeg.org/ffmpeg/trunk
2008-09-02 22:45:13 +00:00
Stefano Sabatini
bde15e74de
Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
...
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
2008-06-03 16:20:54 +00:00
Björn Axelsson
899681cd1d
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://svn.ffmpeg.org/ffmpeg/trunk
2007-11-21 07:41:00 +00:00
Panagiotis Issaris
6f3e0b2174
Replace all occurrences of AVERROR_IO with AVERROR(EIO).
...
Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-19 15:23:32 +00:00
Panagiotis Issaris
769e10f068
Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).
...
Originally committed as revision 9759 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-19 15:21:30 +00:00
Måns Rullgård
f015e411d7
kill uninitialised variable warning in amr_read_packet()
...
Originally committed as revision 9522 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-07-07 13:46:30 +00:00
Vitor Sessak
7cf0999529
remove empty write trailer functions
...
patch by Vitor: [vitor1001 gmail com]
Originally committed as revision 9442 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-06-27 06:54:47 +00:00
Michael Niedermayer
87e8788680
allocate 32 extra bytes at the end of the probe buffer and remove most probe buf_size checks
...
Originally committed as revision 8677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2007-04-08 11:34:15 +00:00
Michael Niedermayer
d95442c03e
unused #define
...
Originally committed as revision 6638 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 23:59:08 +00:00
Michael Niedermayer
ab2c12ec90
remove dummy amr_read_close()
...
Originally committed as revision 6637 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 23:57:44 +00:00
Michael Niedermayer
b49638928b
more factoriztaion and a FIXME note
...
Originally committed as revision 6636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 23:56:49 +00:00
Michael Niedermayer
d84fd5d153
factorze another 2 lines
...
Originally committed as revision 6635 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 23:53:14 +00:00
Michael Niedermayer
ce2f3c8b0c
set duration and timebase (based on a patch by Simon Morlat simon.morlat linphone org)
...
Originally committed as revision 6634 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 23:49:45 +00:00
Michael Niedermayer
b1bf48aa91
factorize (untested)
...
Originally committed as revision 6633 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 23:45:12 +00:00
Michael Niedermayer
effdc8ef2a
return cleanup
...
Originally committed as revision 6632 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-10 23:28:27 +00:00
Diego Biurrun
b78e7197a8
Change license headers to say 'FFmpeg' instead of 'this program/this library'
...
and fix GPL/LGPL version mismatches.
Originally committed as revision 6577 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-10-07 15:30:46 +00:00
Måns Rullgård
191e8ca752
fix some signedness warnings
...
Originally committed as revision 6355 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-09-27 19:47:39 +00:00
Diego Biurrun
ed4e20ac7f
Fix some "'static' is not at beginning of declaration" warnings.
...
Originally committed as revision 5956 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-08-08 10:24:26 +00:00
Måns Rullgård
ff70e60176
allow individual selection of muxers and demuxers
...
Originally committed as revision 5707 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-10 21:14:37 +00:00
Måns Rullgård
d2a067d1d9
give AVInput/OutputFormat structs consistent names
...
Originally committed as revision 5697 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-07-09 23:40:53 +00:00
Gianluigi Tiesi
0e6c947df3
Place proper #ifdef around muxer-specific code.
...
patch by Gianluigi Tiesi < mplayer at@at netfarm dot.dot it >
Originally committed as revision 4880 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-22 13:50:59 +00:00
Diego Biurrun
5509bffa88
Update licensing information: The FSF changed postal address.
...
Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
2006-01-12 22:43:26 +00:00
Diego Biurrun
115329f160
COSMETICS: Remove all trailing whitespace.
...
Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-12-17 18:14:38 +00:00
Michael Niedermayer
01f4895c68
changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
...
Originally committed as revision 4453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-07-17 22:24:36 +00:00
Michael Niedermayer
2692067a45
AVPacket.pos
...
Originally committed as revision 4314 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-05-26 20:17:12 +00:00
Roberto Togni
93ccc14df5
Put correct fourcc in tag field for amr_nb (samr) and amr_wb (sawb)
...
Originally committed as revision 4152 to svn://svn.ffmpeg.org/ffmpeg/trunk
2005-04-24 11:15:35 +00:00
Mike Melanson
0bd586c50d
sweeping change from -EIO -> AVERROR_IO
...
Originally committed as revision 3239 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-06-19 03:59:34 +00:00
Michael Niedermayer
e928649b0b
pass AVPacket into av_write_frame()
...
fixes the random dts/pts during encoding
asf preroll fix
no more initial zero frames for b frame encoding
mpeg-es dts during demuxing fixed
.ffm timestamp scale fixed, ffm is still broken though
Originally committed as revision 3168 to svn://svn.ffmpeg.org/ffmpeg/trunk
2004-05-29 02:06:32 +00:00
Michael Niedermayer
d663a1fdc0
AMR-WB support by (Johannes Carlsson <joca at rixmail dot se>)
...
Originally committed as revision 2311 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-09-28 20:34:11 +00:00
Johannes Carlsson
2f4db4d5e5
amr typefix patch by (Johannes Carlsson <joca at rixmail dot se>)
...
Originally committed as revision 1972 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-06-18 22:24:51 +00:00
Zdenek Kabelac
067cbf313f
* amr format - by Johannes Carlsson
...
Originally committed as revision 1934 to svn://svn.ffmpeg.org/ffmpeg/trunk
2003-06-06 11:47:49 +00:00