James Zern
e9cef89702
avformat: Add a flag to mark muxers that allow (non strict) monotone timestamps.
...
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
13 years ago
Martin Storsjö
20234a4bd7
cosmetics: Align muxer/demuxer declarations
...
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>
13 years ago
Martin Storsjö
167f3b8de7
libavformat: Add an ff_ prefix to some lavf internal symbols
...
Prefix the functions/tables brktimegm, pcm_read_seek,
dv_offset_reset, voc_get_packet, codec_movaudio_tags,
codec_movvideo_tags.
After this, lavf has no global symbols without the proper prefix.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
6e9651d106
lavf: remove AVFormatParameters from AVFormatContext.read_header signature
13 years ago
Anton Khirnov
c3f9ebf743
lavf: make av_set_pts_info private.
...
It's supposed to be called only from (de)muxers.
13 years ago
Victor Vasiliev
12bc20502a
Generalize RIFF INFO tag support; support reading INFO tag in wav
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
13 years ago
Anton Khirnov
3b3bbdd3e6
lavf,lavd: replace av_new_stream->avformat_new_stream part I.
...
Trivial replacements with sed are done in this commit:
sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
13 years ago
Anton Khirnov
145f741e11
AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*
13 years ago
Anton Khirnov
dfc2c4d900
lavf: use designated initialisers for all (de)muxers.
...
It's more readable and less prone to breakage.
14 years ago
Anton Khirnov
6270995667
wav: remove a use of deprecated AV_METADATA_ macro
14 years ago
Tomas Härdin
b21e6b707f
wav: parse 'bext' metadata
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Tomas Härdin
67b1761fcb
wav: keep parsing until EOF if the input is seekable and we know the size of the data tag
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Tomas Härdin
90f2ee8cb4
wav: Refactor the tag checking into a switch statement
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Tomas Härdin
1cf18de982
wav: make sure neither data_size nor sample_count is negative.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Tomas Härdin
7f84055e2d
wav: refactor the 'fmt ' tag search and parsing.
...
Moving the search and parsing of the 'fmt ' info the main loop of
wav_read_header() allows tags that precede it to be parsed. Creating
wav_parse_fmt_tag() makes wav_read_header() easier to read.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Benjamin Larsson
a4ad943860
wav: add an option for writing BEXT chunk
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Mans Rullgard
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Carl Eugen Hoyos
8d0786ec6d
wav: remove an invalid free().
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Max Horn
ca402f32e3
handle malloc failures in ff_get_wav_header
...
ff_get_wav_header is reading data from a WAVE file and then uses it
(without validation) to malloc a buffer. It then proceeded to read
data into the buffer, without verifying that the allocation succeeded.
To address this, change ff_get_wav_header to return an error if
allocation failed, and adapted all calling code to handle that error.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
14 years ago
Anton Khirnov
8978fedaee
avio: introduce an AVIOContext.seekable field
...
Use it instead of url_is_streamed and AVIOContext.is_streamed.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
b7f2fdde74
avio: rename put_flush_packet -> avio_flush
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
45a8a02a41
lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
66e5b1df36
avio: deprecate url_feof
...
AVIOContext.eof_reached should be used directly instead.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
a2704c9712
avio: add avio_tell macro as a replacement for url_ftell
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
e356fc57a2
lavf: replace all uses of url_fskip with avio_seek
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
6b4aa5dac8
avio: avio_ prefix for url_fseek
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
0abdb29317
lavf: use a new ffio_wfourcc macro instead of put_tag() where possible
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
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>
14 years ago
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>
14 years ago
Anton Khirnov
ae628ec1fd
avio: rename ByteIOContext to AVIOContext.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
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.
14 years ago
Michael Niedermayer
f9329946d0
Parse fact chunks from wav files to find duration.
...
Originally committed as revision 26370 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Niedermayer
724b1f6a05
Factor tag reading code out of wav read_header()
...
Originally committed as revision 26369 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Niedermayer
462b26202b
Set duration for wav files from sample size and data size or the wf64 sample value.
...
This should improve duration accuracy slightly and avoids a warning about its
inaccuracy when accurate values are available. Idea by Frank Barchard
Originally committed as revision 26366 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
e94204dfd8
move pcm demuxers to their own file
...
Originally committed as revision 24993 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Baptiste Coudurier
f0187d20d1
In wav muxer, always flush in write_trailer, fix pipe output
...
Originally committed as revision 24568 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
f45a27dc52
Reindent
...
Originally committed as revision 21747 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
b7e0f88f2b
Fix demuxing of wav files with broken data header
...
Originally committed as revision 21746 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
70d8c762d9
Reindent
...
Originally committed as revision 20182 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
811e0fc2e8
Add RF64 support to wav demuxer.
...
Originally committed as revision 20181 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
3fcb5113c6
wav demuxer: return AVERROR_EOF instead of AVERROR(EIO) when the end of
...
the file is reached normally, without any error.
Originally committed as revision 20143 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
e581b6288f
wav: return av_get_packet errors unchanged.
...
Originally committed as revision 20142 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
fbc6630168
Remove url_feof check that would be triggered only after incorrectly producing
...
an empty packet and also av_get_packet already handles EOF now.
Originally committed as revision 20140 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Reimar Döffinger
8a62a378de
Remove useless setting of pkt->size, av_get_packet already handles that.
...
Originally committed as revision 20139 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
8f771e76fd
Rearrange wav_muxer and {wav|w64}_demuxer blocks to be under proper #ifdefs.
...
Fixes compilation with --disable-optimizations --disable-demuxers.
Originally committed as revision 19961 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
738914be66
Move find_guid function and guid_data array to a globally available place.
...
Fixes compilation with --disable-optimizations --disable-demuxer=w64.
Originally committed as revision 19959 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
c5e86106fb
cosmetics: whitespace, prettyprinting, coding style fixes
...
Originally committed as revision 19618 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
740e89cf83
Sony Wave64 demuxer
...
patch by Daniel Verkamp, daniel drv nu
Originally committed as revision 19617 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Daniel Verkamp
1a40491ef2
Add ff_ prefixes to exported symbols in libavformat/riff.h.
...
patch by Daniel Verkamp, aniel drv nu
Originally committed as revision 19254 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago