summaryrefslogtreecommitdiff
path: root/libavcodec/wavpack.c
Commit message (Collapse)AuthorAge
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* wavpack: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Include libavutil/channel_layout.h instead of libavutil/audioconvert.hJustin Ruggles2012-11-11
| | | | Also reorder some other #include when applicable.
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bitHendrik Leppkes2012-07-23
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* wavpack: Fix an integer overflowDerek Buitenhuis2012-03-02
| | | | | | | | | | Integer Overflow Checker detected an integer overflow while FATE was running. See: http://fate.libav.org/x86_64-linux-ioc/ Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* wavpack: Don't shift minclip/maxclipDerek Buitenhuis2012-02-23
| | | | | | | | | | | Since we are clipping before we shift the values to 16 or 32 bits, we should not shift the min/max clip values to compensate. Fixes 8 and 24 bit lossy decoding. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wavpack: add needed braces for 2 statements inside an if blockJustin Ruggles2012-02-10
|
* wavpack: allow user to disable CRC checkingPaul B Mahol2012-02-10
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* wavpack: fix clipping for 32-bit lossy modeKostya Shishkov2012-01-15
| | | | | | Reference decoder clips data before shifting it to final range and also forces 32-bit lossy mode to be actually 24-bit lossy mode in order to be able to perform proper clipping.
* wavpack: fix typos in previous cosmetic clean-up commitJustin Ruggles2012-01-02
|
* wavpack: cosmetics: K&R pretty-printingJustin Ruggles2012-01-02
|
* wavpack: determine sample_fmt before requesting a bufferHendrik Leppkes2012-01-01
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* Drop ALT_ prefix from BITSTREAM_READER_LE name.Diego Biurrun2011-12-22
| | | | | The prefix is a historic remnant that probably meant "alternative". Now that the A32 bitstream reader has been dropped it makes no sense anymore.
* wavpack: Fix 32-bit clippingDerek Buitenhuis2011-12-16
| | | | | | | | In the case that (frame_flags & 0x03) == 3, hybrid_maxclip may have had a signed integer overflow. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wavpack: Clip samples after shiftingDerek Buitenhuis2011-12-16
| | | | | | | | It doesn't make much sense to clip pre-shift, nor is it correct for proper decoding. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* wavpack: Properly clip samples during lossy decodeDerek Buitenhuis2011-12-03
| | | | | | | | When decoding lossy WavPack samples, they are supposed to be clipped, in order to be decoded correctly. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Add avcodec_decode_audio4().Justin Ruggles2011-12-02
| | | | | | Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders.
* wavpack: calculate bpp using av_get_bytes_per_sample()Justin Ruggles2011-10-23
|
* wavpack: Reset internal state on corrupted blocksLaurent Aimar2011-10-07
| | | | | | | | wavpack_decode_block() supposes that it is called back with the exact same buffer unless it has returned with an error. With multi-channels files, wavpack_decode_frame() was breaking this assumption. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* Fixed segfault with wavpack decoder on corrupted decorrelation terms sub-blocks.Laurent Aimar2011-09-10
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* wavpack: Check error codes rather than working around error conditions.Alex Converse2011-09-08
|
* Fixed invalid access in wavpack decoder on corrupted bitstream.Laurent Aimar2011-09-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Fixed invalid writes in wavpack decoder on corrupted bitstreams.Laurent Aimar2011-09-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Fixed invalid access in wavpack decoder on corrupted extra bits sub-blocks.Laurent Aimar2011-09-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* wavpack: fix wrong return value in wavpack_decode_block()Kostya Shishkov2011-09-05
| | | | | | | | This function should return number of samples decoded, not number of bytes decoded. Spotted by Uoti Urpala. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* wavpack: use context reset in appropriate placesKostya Shishkov2011-09-05
| | | | | | | | This fixes improper flushing in the cases when the same frame is decoded in several iterations (for being too large to fit into output buffer) and flush is called mid-decoding and it also resets context in case of decoding errors. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* WavPack decoder: implement flush functionKostya Shishkov2011-08-21
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | It is pretty hopeless that other considerable projects will adopt libavutil alone in other projects. Projects that need small footprint are better off with more specialized libraries such as gnulib or rather just copy the necessary parts that they need. With this in mind, nobody is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* Replace remaining occurrences of deprecated CH_* with AV_CH_*Anton Khirnov2011-02-06
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.Diego Elio Pettenò2011-01-26
| | | | | | | None of these symbols should be accessed directly, so declare them as hidden. Signed-off-by: Mans Rullgard <mans@mansr.com>
* reindent after last commitKostya2011-01-24
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Extend WavPack demuxer and decoder to support >2 channel audioKostya2011-01-24
| | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
* Limit number of samples decoded for WavPack mono mode, so decoded samples willKostya Shishkov2011-01-08
| | | | | | fit into output buffer. Originally committed as revision 26269 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fail more gracefully for multichannel wavpack in another container.Carl Eugen Hoyos2011-01-07
| | | | Originally committed as revision 26253 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enumStefano Sabatini2010-11-12
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-20
| | | | | | | | Passing an explicit filename to this command is only necessary if the documentation in the @file block refers to a file different from the one the block resides in. Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Define AVMediaType enum, and use it instead of enum CodecType, whichStefano Sabatini2010-03-30
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: reindent after last commitKostya Shishkov2010-02-19
| | | | Originally committed as revision 21895 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Since WavPack chunk can contain more samples than FFmpeg is guaranteed toKostya Shishkov2010-02-19
| | | | | | hold, decode it in several iterations outputting as many samples as possible. Originally committed as revision 21894 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use get_bits_left() instead of size_in_bits - get_bits_count().Ronald S. Bultje2009-11-16
| | | | Originally committed as revision 20543 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add CODEC_CAP_SUBFRAMES for codecs that output multiple subframesSascha Sommer2009-09-16
| | | | | | | | per AVPacket No longer print "Multiple frames in a packet" error message when CODEC_CAP_SUBFRAMES is set (wmapro, wavpack) Originally committed as revision 19881 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add floating point audio decoding to WavPack decoder.Laurent Aimar2009-05-06
| | | | | | Patch by Laurent Aimar (fenrir at `antonym of 'audio'+antonym of 'WAN'` dot org) Originally committed as revision 18754 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Prepare WavPack decoder to support floating point output.Laurent Aimar2009-05-06
| | | | | | Patch by Laurent Aimar (f-e-n-r-i-r .@.t. v=i=d=e=o=l=a=n .d.o.t. o=r=g) Originally committed as revision 18753 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Factorize out integer sample value decoding for WavPack.Laurent Aimar2009-05-05
| | | | | | This is slightly modified patch by Laurent Aimar. Originally committed as revision 18740 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Check whether extra bits block has enough data.Laurent Aimar2009-05-03
| | | | | | Patch by Laurent Aimar "f\145nr\151r >at< vide\157lan <dot> o\162g" Originally committed as revision 18732 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove dead assignments found by CSABenjamin Larsson2009-05-02
| | | | Originally committed as revision 18730 to svn://svn.ffmpeg.org/ffmpeg/trunk