summaryrefslogtreecommitdiffstats
path: root/libavcodec/tta.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add some missing codecs and update names to match the codec long_nameJustin Ruggles2009-03-021-1/+1
| | | | | | or vice-versa. Originally committed as revision 17706 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use full internal pathname in doxygen @file directives.Diego Biurrun2009-02-011-1/+1
| | | | | | | Otherwise doxygen complains about ambiguous filenames when files exist under the same name in different subdirectories. Originally committed as revision 16912 to svn://svn.ffmpeg.org/ffmpeg/trunk
* remove ff_get_fourcc() and use AV_RL32() insteadAurelien Jacobs2009-01-171-2/+2
| | | | Originally committed as revision 16654 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Bump Major version, this commit is almost just renaming bits_per_sample toLuca Abeni2008-09-081-3/+3
| | | | | | | | | | | bits_per_coded_sample but that cannot be done seperately. Patch by Luca Abeni Also reset the minor version and fix the forgotton change to libfaad. Note: The API/ABI should not be considered stable yet, there still may be a change done here or there if some developer has some cleanup ideas and patches! Originally committed as revision 15262 to svn://svn.ffmpeg.org/ffmpeg/trunk
* mark read-only data as constStefan Gehrer2008-06-241-2/+2
| | | | Originally committed as revision 13947 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Make AVCodec long_names definition conditional depending on CONFIG_SMALL.Stefano Sabatini2008-06-121-1/+1
| | | | Originally committed as revision 13759 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add long names to some AVCodec declarations.Stefano Sabatini2008-04-291-0/+1
| | | | | | patch by Stefano Sabatini, stefano.sabatini-lala poste it Originally committed as revision 13022 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Apply 'cold' attribute to init/uninit functions in libavcodecZuxy Meng2008-03-211-2/+2
| | | | Originally committed as revision 12525 to svn://svn.ffmpeg.org/ffmpeg/trunk
* constMichael Niedermayer2008-02-011-1/+1
| | | | Originally committed as revision 11781 to svn://svn.ffmpeg.org/ffmpeg/trunk
OpenPOWER on IntegriCloud