summaryrefslogtreecommitdiff
path: root/libavformat/wav.c
Commit message (Collapse)AuthorAge
* 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
* Change semantic of CONFIG_*, HAVE_* and ARCH_*.Aurelien Jacobs2009-01-13
| | | | | | They are now always defined to either 0 or 1. Originally committed as revision 16590 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove offset_t typedef and use int64_t directly instead.Diego Biurrun2008-10-03
| | | | | | | The name offset_t is easily confused with the standard off_t type and *_t is POSIX reserved namespace if any POSIX header is included. Originally committed as revision 15533 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Avoid segfault due to not set AVCodec.Michael Niedermayer2008-09-24
| | | | Originally committed as revision 15400 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add error message for unsupported codecs in WAVE.Justin Ruggles2008-09-14
| | | | | | Resolves issue 623. Originally committed as revision 15322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace generic CONFIG_MUXERS preprocessor conditionals by more specificDiego Biurrun2008-09-02
| | | | | | CONFIG_FOO_MUXER conditionals where appropriate. Originally committed as revision 15158 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Change codec_tag type from const struct AVCodecTag ** to const struct ↵Reimar Döffinger2008-08-24
| | | | | | AVCodecTag * const * Originally committed as revision 14947 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove useless close funcsBaptiste Coudurier2008-06-19
| | | | Originally committed as revision 13835 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.Stefano Sabatini2008-06-03
| | | | | | | 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
* Decrease returning probe score for WAV demuxer to avoidVladimir Voroshilov2008-04-19
| | | | | | | | probe conflict between WAV and future ACT demuxer. This is necessary because ACT has standard WAV header at top of it's own. Originally committed as revision 12909 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use dynamically allocated ByteIOContext in AVFormatContextBjörn Axelsson2007-11-21
| | | | | | | 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
* move unrelated functions declarations out of allformats.hAurelien Jacobs2007-09-11
| | | | Originally committed as revision 10475 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurrences of AVERROR_IO with AVERROR(EIO).Panagiotis Issaris2007-07-19
| | | | Originally committed as revision 9760 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).Panagiotis Issaris2007-07-19
| | | | Originally committed as revision 9759 to svn://svn.ffmpeg.org/ffmpeg/trunk
* add an enum for need_parsingAurelien Jacobs2007-04-15
| | | | Originally committed as revision 8742 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add FACT chunk for non-PCM wav formatsMichel Bardiaux2007-02-12
| | | | Originally committed as revision 7950 to svn://svn.ffmpeg.org/ffmpeg/trunk