summaryrefslogtreecommitdiff
path: root/libavcodec/tta.c
Commit message (Collapse)AuthorAge
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: change all decoders to behave consistently with AV_EF_CRCCHECK.Anton Khirnov2013-10-28
| | | | | | Just crccheck prints a warning, crccheck+explode returns an error. Also document this behavior.
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* Remove commented-out debug #define cruftDiego Biurrun2013-05-16
|
* avcodec: av_log_missing_feature(1) ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-13
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* tta: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* ttadec: fix last frame handling when seekingJustin Ruggles2012-12-22
| | | | | | | | | Using a frame count, as is done currently, does not work at all with seeking. Instead, when the number of samples in the final frame has been decoded, we check if only the 32-bit CRC is remaining. If so, we assume that it is the final frame. There is no longer a need to keep total_frames in TTAContext.
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Use proper return values in case of missing featuresDiego Biurrun2012-10-12
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* Improve descriptiveness of a number of codec and container long namesDiego Biurrun2012-07-30
|
* tta: Fix comment about channel number; TTA supports >2 channels.Aneesh Dogra2012-05-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* tta: prevents overflows for 32bit integers in header.Ronald S. Bultje2012-05-02
| | | | | | | | This prevents sample_rate/data_length from going negative, which caused various crashes and undefined behaviour further down. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* cosmetics: Align codec declarationsMartin Storsjö2012-04-06
| | | | | | | Also break some long lines, remove codec function placeholder comments and add spaces in sample/pixel format lists. Signed-off-by: Martin Storsjö <martin@martin.st>
* ttadec: unbreak playback of matroska filesPaul B Mahol2012-03-08
| | | | | | | | Matroska demuxer needs to recreate tta header, so just display crc error without aborting. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ttadec: cosmetics: reindentPaul B Mahol2012-02-19
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* ttadec: use branchless unsigned-to-signed unfoldingJustin Ruggles2012-02-17
|
* ttadec: remove dead codePaul B Mahol2012-02-17
| | | | | | | | The unused code being removed is for encoding only and therefore is not needed by the decoder. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* ttadec: CRC checkingPaul B Mahol2012-02-14
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* tta: error out if samplerate is zero.Ronald S. Bultje2012-02-11
| | | | | | | Prevents a division by zero later on. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* ttadec: fix invalid free when an error occurs while decoding 24-bit ttaJustin Ruggles2012-02-10
|
* tta: use skip_bits_long()Paul B Mahol2012-02-09
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* tta: cast output data pointer to the correct typeJustin Ruggles2012-01-17
| | | | fixes "warning: assignment from incompatible pointer type"
* tta: fix 24-bit decoding.Justin Ruggles2012-01-07
| | | | Decode to the correct output buffer.
* 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.
* ttadec: check channel count as read from extradata.Shitiz Garg2011-12-10
| | | | | | | fixes floating-point exception due to channels being set to 0. fixes Bug 128. Signed-off-by: Justin Ruggles <justin.ruggles@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.
* tta: use an integer instead of a pointer to iterate output samplesJustin Ruggles2011-11-11
|
* tta: check for allocation failure of decode_bufferJustin Ruggles2011-10-25
|
* tta: use correct frame_length calculation.Justin Ruggles2011-10-25
| | | | using a floating-point calculation is not necessary.
* tta: add support for decoding 24-bit sample formatJustin Ruggles2011-10-25
| | | | | | Note that this will not work in most cases with avconv and avplay due to the AVCODEC_MAX_AUDIO_FRAME_SIZE limit, but it will decode correctly if given a large enough output buffer.
* cosmetics: indentationJustin Ruggles2011-10-25
|
* tta: remove pointless bracesJustin Ruggles2011-10-25
|
* tta: check output buffer size after adjusting frame length for last frameJustin Ruggles2011-10-25
|
* tta: fix reading of format in TTA header.Justin Ruggles2011-10-25
| | | | TTA does not support float at all, and format 2 is encrypted TTA.
* tta: remove useless commented-out linesJustin Ruggles2011-10-25
|
* tta: check remaining bitstream size while reading unary valueJustin Ruggles2011-10-25
|
* Fixed size given to init_get_bits().Laurent Aimar2011-09-15
| | | | | | | init_get_bits() takes a number of bits and not a number of bytes as its size argument. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* tta: remove disabled codeDiego Biurrun2011-07-18
|
* doxygen: use Doxygen markup for authors and web links where appropriateDiego Biurrun2011-07-15
|
* Use av_log_ask_for_sample() where appropriate.Diego Biurrun2011-04-21
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove a few if (p) av_free(p) formsClément Bœsch2011-02-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.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>
* 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
* tta: remove stray semicolonMåns Rullgård2010-09-11
| | | | Originally committed as revision 25103 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-10
| | | | Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk