summaryrefslogtreecommitdiff
path: root/libavcodec/tta.c
Commit message (Collapse)AuthorAgeFilesLines
* ttadec: fix last frame handling when seekingJustin Ruggles2012-12-221-13/+17
| | | | | | | | | 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-041-1/+2
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* Use proper return values in case of missing featuresDiego Biurrun2012-10-121-1/+1
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-071-1/+1
|
* Improve descriptiveness of a number of codec and container long namesDiego Biurrun2012-07-301-1/+1
|
* tta: Fix comment about channel number; TTA supports >2 channels.Aneesh Dogra2012-05-151-1/+1
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* tta: prevents overflows for 32bit integers in header.Ronald S. Bultje2012-05-021-3/+5
| | | | | | | | 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-061-1/+1
| | | | | | | 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-081-2/+1
| | | | | | | | 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-191-4/+4
| | | | | 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-171-2/+1
|
* ttadec: remove dead codePaul B Mahol2012-02-171-28/+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-141-0/+33
| | | | | 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-111-0/+3
| | | | | | | 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-101-6/+17
|
* tta: use skip_bits_long()Paul B Mahol2012-02-091-7/+5
| | | | | 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-171-1/+1
| | | | fixes "warning: assignment from incompatible pointer type"
* tta: fix 24-bit decoding.Justin Ruggles2012-01-071-1/+1
| | | | Decode to the correct output buffer.
* Drop ALT_ prefix from BITSTREAM_READER_LE name.Diego Biurrun2011-12-221-1/+1
| | | | | 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-101-0/+5
| | | | | | | 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-021-11/+17
| | | | | | 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-111-1/+1
|
* tta: check for allocation failure of decode_bufferJustin Ruggles2011-10-251-1/+5
|
* tta: use correct frame_length calculation.Justin Ruggles2011-10-251-7/+6
| | | | using a floating-point calculation is not necessary.
* tta: add support for decoding 24-bit sample formatJustin Ruggles2011-10-251-22/+34
| | | | | | 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-251-94/+94
|
* tta: remove pointless bracesJustin Ruggles2011-10-251-4/+2
|
* tta: check output buffer size after adjusting frame length for last frameJustin Ruggles2011-10-251-4/+5
|
* tta: fix reading of format in TTA header.Justin Ruggles2011-10-251-18/+14
| | | | TTA does not support float at all, and format 2 is encrypted TTA.
* tta: remove useless commented-out linesJustin Ruggles2011-10-251-13/+0
|
* tta: check remaining bitstream size while reading unary valueJustin Ruggles2011-10-251-1/+1
|
* Fixed size given to init_get_bits().Laurent Aimar2011-09-151-1/+1
| | | | | | | 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-291-8/+7
| | | | It's more readable and less prone to breakage.
* tta: remove disabled codeDiego Biurrun2011-07-181-31/+0
|
* doxygen: use Doxygen markup for authors and web links where appropriateDiego Biurrun2011-07-151-2/+2
|
* Use av_log_ask_for_sample() where appropriate.Diego Biurrun2011-04-211-2/+3
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove a few if (p) av_free(p) formsClément Bœsch2011-02-031-2/+1
| | | | 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-261-1/+1
| | | | | | | 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-121-5/+5
| | | | | | SampleFormat with AVSampleFormat. Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
* tta: remove stray semicolonMåns Rullgård2010-09-111-1/+1
| | | | Originally committed as revision 25103 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-101-1/+1
| | | | Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
* tta: replace potentially huge VLAs with malloc/free in contextMåns Rullgård2010-06-241-21/+30
| | | | Originally committed as revision 23759 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove explicit filename from Doxygen @file commands.Diego Biurrun2010-04-201-1/+1
| | | | | | | | 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-301-1/+1
| | | | | | is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Cosmetics : add a space after ",".Jai Menon2010-03-291-1/+1
| | | | Originally committed as revision 22717 to svn://svn.ffmpeg.org/ffmpeg/trunk
* TTA : Check if the output buffer size is within bounds.Jai Menon2010-03-281-0/+4
| | | | | | Fixes issue 1848. Originally committed as revision 22711 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fixed overreads in TTA decoder with corrupted bistreams.Laurent Aimar2010-03-031-2/+9
| | | | Originally committed as revision 22176 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Rename bitstream.h to get_bits.h.Stefano Sabatini2009-04-131-1/+1
| | | | Originally committed as revision 18494 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement avcodec_decode_video2(), _audio3() and _subtitle2() which takes anThilo Borgmann2009-04-071-1/+3
| | | | | | | | | | | AVPacket argument rather than a const uint8_t *buf + int buf_size. This allows passing of packet-specific flags from demuxer to decoder, such as the keyframe flag, which appears necessary to playback corePNG P-frames. Patch by Thilo Borgmann thilo.borgmann googlemail com, see also the thread "Google Summer of Code participation" on the mailinglist. Originally committed as revision 18351 to svn://svn.ffmpeg.org/ffmpeg/trunk