summaryrefslogtreecommitdiff
path: root/libavcodec/smacker.c
Commit message (Collapse)AuthorAge
* cosmetics: Drop particularly redundant silly commentsDiego Biurrun2016-02-18
|
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* smacker: use the AVFrame API properly.Anton Khirnov2013-11-16
|
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* smacker: Free memory properly if the init function failsMartin Storsjö2013-09-11
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: Make sure we don't fill in huffman codes out of rangeMartin Storsjö2013-09-11
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: Check malloc return valuesMartin Storsjö2013-09-11
| | | | | | Also try to free local allocations on errors. Signed-off-by: Martin Storsjö <martin@martin.st>
* smacker: check the return value of smacker_decode_treeKostya Shishkov2013-06-16
| | | | | | | | | Also prevent a memory leak. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* smacker: fix an off by one in huff.length computationKostya Shishkov2013-06-16
| | | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* smacker: add a clarification notice about audio decodingKostya Shishkov2013-05-28
|
* Revert "smackaud: clip output samples"Kostya Shishkov2013-05-27
| | | | | | Smacker audio uses overflows instead of clipping. This reverts commit 375ca0aca81be2951d9ba4731196e70e490d3cdf.
* lavc decoders: properly initialize AVFrame.Anton Khirnov2013-03-08
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* smackaud: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* lavc: fix decode_frame() third parameter semantics for video decodersAnton Khirnov2012-12-04
| | | | It's got_frame, not data size
* 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 PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-08
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* smacker: remove some unused codeMans Rullgard2012-07-01
| | | | | | | This removes some code apparently left over from vlc reader debugging. Signed-off-by: Mans Rullgard <mans@mansr.com>
* 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>
* smacker audio: sign-extend the initial 16-bit predicted valueFranz Brauße2012-03-30
| | | | | | Fixes Bug #265 Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* Replace memset(0) by zero initializations.Diego Biurrun2012-03-28
| | | | Also remove one pointless zero initialization in rangecoder.c.
* smacker: convert palette and header reading to bytestream2.Ronald S. Bultje2012-03-25
|
* vlc/rl: Add ff_ prefix to the nonstatic symbolsMartin Storsjö2012-02-15
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* cosmetics: Remove extra newlines at EOFAlex Converse2012-01-27
|
* smacker: Sanity check huffman tables found in the headers.Alex Converse2012-01-26
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* smacker: remove dead storeAlex Converse2012-01-26
|
* 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.
* 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.
* smackaud: use uint8_t* for 8-bit output buffer typeJustin Ruggles2011-11-09
| | | | This matches the output sample format and the range of the output values.
* smackaud: clip output samplesJustin Ruggles2011-11-09
|
* smackaud: use sign_extend() for difference value instead of castingJustin Ruggles2011-11-09
|
* smacker: validate channels and sample format.Justin Ruggles2011-10-11
|
* smacker: check buffer size before reading output sizeJustin Ruggles2011-10-11
|
* smacker: validate number of channelsJustin Ruggles2011-10-11
|
* smacker: fix a few off by 1 errorsMichael Niedermayer2011-09-14
| | | | | | stereo & 16bit is untested due to lack of samples Signed-off-by: Martin Storsjö <martin@martin.st>
* Check for invalid VLC value in smacker decoder.Laurent Aimar2011-09-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* Check and propagate errors when VLC trees cannot be built in smacker decoder.Laurent Aimar2011-09-14
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: use designated initialisers for all codecs.Anton Khirnov2011-07-29
| | | | It's more readable and less prone to breakage.
* Replace deprecated FF_*_TYPE symbols with AV_PICTURE_TYPE_*.Stefano Sabatini2011-05-02
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* smacker: remove unnecessary call to avctx->release_buffer in decode_frame()Stefano Sabatini2011-04-27
| | | | | | | | | The release_buffer was cleaning the provided frame, thus causing the successive call to avctx->reget_buffer() to allocate a new frame. In case the returned frame was not the same one previously returned but a new one with different data, it resulted in artifacts. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* 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>
* 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
* Add av_ prefix to bswap macrosMåns Rullgård2010-07-10
| | | | Originally committed as revision 24170 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