summaryrefslogtreecommitdiff
path: root/libavformat/wav.c
Commit message (Collapse)AuthorAge
* libavformat: Add an ff_ prefix to some lavf internal symbolsMartin Storsjö2012-02-15
| | | | | | | | | | 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>
* lavf: remove AVFormatParameters from AVFormatContext.read_header signatureAnton Khirnov2012-01-27
|
* lavf: make av_set_pts_info private.Anton Khirnov2011-11-30
| | | | It's supposed to be called only from (de)muxers.
* Generalize RIFF INFO tag support; support reading INFO tag in wavVictor Vasiliev2011-11-26
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf,lavd: replace av_new_stream->avformat_new_stream part I.Anton Khirnov2011-10-19
| | | | | Trivial replacements with sed are done in this commit: sed 's/av_new_stream(\([^)]*\), 0)/avformat_new_stream(\1, NULL)/'
* AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*Anton Khirnov2011-10-12
|
* lavf: use designated initialisers for all (de)muxers.Anton Khirnov2011-07-17
| | | | It's more readable and less prone to breakage.
* wav: remove a use of deprecated AV_METADATA_ macroAnton Khirnov2011-07-17
|
* wav: parse 'bext' metadataTomas Härdin2011-07-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wav: keep parsing until EOF if the input is seekable and we know the size of ↵Tomas Härdin2011-07-13
| | | | | | the data tag Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wav: Refactor the tag checking into a switch statementTomas Härdin2011-07-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wav: make sure neither data_size nor sample_count is negative.Tomas Härdin2011-07-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wav: refactor the 'fmt ' tag search and parsing.Tomas Härdin2011-07-13
| | | | | | | | 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>
* wav: add an option for writing BEXT chunkBenjamin Larsson2011-07-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* wav: remove an invalid free().Carl Eugen Hoyos2011-06-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* handle malloc failures in ff_get_wav_headerMax Horn2011-04-14
| | | | | | | | | | | 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>
* avio: introduce an AVIOContext.seekable fieldAnton Khirnov2011-04-03
| | | | Use it instead of url_is_streamed and AVIOContext.is_streamed.
* 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>
* lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes senseAnton Khirnov2011-03-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: deprecate url_feofAnton Khirnov2011-03-07
| | | | | | AVIOContext.eof_reached should be used directly instead. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: add avio_tell macro as a replacement for url_ftellAnton Khirnov2011-03-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: replace all uses of url_fskip with avio_seekAnton Khirnov2011-03-01
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avio: avio_ prefix for url_fseekAnton Khirnov2011-03-01
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavf: use a new ffio_wfourcc macro instead of put_tag() where possibleAnton Khirnov2011-02-25
| | | | 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: avio_ prefixes for get_* functionsAnton Khirnov2011-02-21
| | | | | | | | | | | | | | 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>
* 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.
* Parse fact chunks from wav files to find duration.Michael Niedermayer2011-01-15
| | | | Originally committed as revision 26370 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factor tag reading code out of wav read_header()Michael Niedermayer2011-01-15
| | | | Originally committed as revision 26369 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Set duration for wav files from sample size and data size or the wf64 sample ↵Michael Niedermayer2011-01-15
| | | | | | | | | 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
* move pcm demuxers to their own fileAurelien Jacobs2010-08-30
| | | | Originally committed as revision 24993 to svn://svn.ffmpeg.org/ffmpeg/trunk
* In wav muxer, always flush in write_trailer, fix pipe outputBaptiste Coudurier2010-07-28
| | | | Originally committed as revision 24568 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentDaniel Verkamp2010-02-10
| | | | Originally committed as revision 21747 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix demuxing of wav files with broken data headerDaniel Verkamp2010-02-10
| | | | Originally committed as revision 21746 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentDaniel Verkamp2009-10-06
| | | | Originally committed as revision 20182 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add RF64 support to wav demuxer.Daniel Verkamp2009-10-06
| | | | Originally committed as revision 20181 to svn://svn.ffmpeg.org/ffmpeg/trunk
* wav demuxer: return AVERROR_EOF instead of AVERROR(EIO) when the end ofReimar Döffinger2009-10-02
| | | | | | the file is reached normally, without any error. Originally committed as revision 20143 to svn://svn.ffmpeg.org/ffmpeg/trunk
* wav: return av_get_packet errors unchanged.Reimar Döffinger2009-10-02
| | | | Originally committed as revision 20142 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove url_feof check that would be triggered only after incorrectly producingReimar Döffinger2009-10-02
| | | | | | an empty packet and also av_get_packet already handles EOF now. Originally committed as revision 20140 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove useless setting of pkt->size, av_get_packet already handles that.Reimar Döffinger2009-10-02
| | | | Originally committed as revision 20139 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rearrange wav_muxer and {wav|w64}_demuxer blocks to be under proper #ifdefs.Diego Biurrun2009-09-22
| | | | | | Fixes compilation with --disable-optimizations --disable-demuxers. Originally committed as revision 19961 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Move find_guid function and guid_data array to a globally available place.Diego Biurrun2009-09-22
| | | | | | Fixes compilation with --disable-optimizations --disable-demuxer=w64. Originally committed as revision 19959 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: whitespace, prettyprinting, coding style fixesDiego Biurrun2009-08-10
| | | | Originally committed as revision 19618 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Sony Wave64 demuxerDaniel Verkamp2009-08-10
| | | | | | patch by Daniel Verkamp, daniel drv nu Originally committed as revision 19617 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add ff_ prefixes to exported symbols in libavformat/riff.h.Daniel Verkamp2009-06-22
| | | | | | patch by Daniel Verkamp, aniel drv nu Originally committed as revision 19254 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change find_tag return type to int64_t, fix a bugBaptiste Coudurier2009-06-03
| | | | | | | where size is negative and url_fseek then seek backward causing infinite loop. This also support 4gb unsigned size. Originally committed as revision 19083 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: Remove pointless period after copyright statement non-sentences.Diego Biurrun2009-01-19
| | | | Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk