summaryrefslogtreecommitdiff
path: root/libavcodec/shorten.c
Commit message (Collapse)AuthorAge
* cosmetics: Drop empty comment linesDiego Biurrun2016-02-18
|
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* shorten: check for return valueVittorio Giovara2014-11-13
| | | | | | | Avoid a possible negative bitshift. CC: libav-stable@libav.org Bug-Id: CID 1194400
* shorten: pad the internal bitstream bufferAnton Khirnov2014-02-04
| | | | | | | Fixes invalid reads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org
* avcodec: Use av_reallocp where suitableAlexandra Khirnova2013-12-09
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* shorten: Fix out-of-array readTim Walker2013-10-10
| | | | | | pred_order == FF_ARRAY_ELEMS(fixed_coeffs) is invalid too. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* shorten: Extend fixed_coeffs to properly support pred_order 0Luca Barbato2013-10-09
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* cosmetics: Group .name and .long_name together in codec/format declarationsDiego Biurrun2013-10-03
|
* shorten: Break out of loop looking for fmt chunk if none is foundMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* shorten: Use a checked bytestream reader for the wave headerMartin Storsjö2013-09-12
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* shorten: use the unsigned type where neededLuca Barbato2013-03-06
| | | | | | get_uint returns an unsigned value, use an unsigned to store blocksize to make sure the comparison logic is correct and report correctly the error for the channel count not supported.
* shorten: report meaningful errorsLuca Barbato2013-03-06
|
* shorten: K&R formatting cosmeticsLuca Barbato2013-03-06
|
* shorten: set invalid channels count to 0Michael Niedermayer2013-03-06
| | | | | | | | Prevent the loop shorten_decode_close from writing and freeing out of the array boundary. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* shorten: decode directly to the user-provided AVFrameJustin Ruggles2013-02-12
|
* shorten: fix array subscript is below array bounds warningLuca Barbato2013-01-28
| | | | Incidentally fixes alpha builds.
* miscellaneous typo fixesDiego Biurrun2012-12-21
|
* lavc: add a wrapper for AVCodecContext.get_buffer().Anton Khirnov2012-12-04
| | | | It will be useful in the upcoming transition to refcounted AVFrames.
* shorten: validate that the channel count in the header is not <= 0Justin Ruggles2012-11-01
|
* shorten: use planar sample formatJustin Ruggles2012-10-14
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* 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>
* shorten: Use separate pointers for the allocated memory for decoded samples.Michael Niedermayer2012-02-16
| | | | | | | | | | | Fixes invalid free() if any of the buffers are not allocated due to either not decoding a header or an error prior to allocating all buffers. Fixes CVE-2012-0858 CC: libav-stable@libav.org Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* shorten: avoid abort() on unknown audio typesJohn Brooks2011-12-08
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* shorten: remove dead initializationPaul B. Mahol2011-12-04
| | | | 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.
* shorten: do not modify samples pointer when interleavingJustin Ruggles2011-11-11
|
* shorten: fix end-of-stream decoding.Justin Ruggles2011-10-20
| | | | | | | | | | | | enable CODEC_CAP_DELAY to flush any remaining frames in the buffer. Stop decoding when the FN_QUIT command is found so that a trailing seek table isn't decoded as a normal frame. decode all channels in the same call to avcodec_decode_audio3() so that decoding will not stop after the first channel of the last frame. Updated FATE reference. More valid audio is now decoded.
* shorten: do not use block size to determine whether to read the header.Justin Ruggles2011-10-20
|
* shorten: check output buffer size before decodingJustin Ruggles2011-10-20
|
* shorten: use av_clip_int16() for output sample clippingJustin Ruggles2011-10-20
|
* shorten: use bytestream functions to decode the embedded WAVE headerJustin Ruggles2011-10-20
|
* shorten: add some commentsJustin Ruggles2011-10-20
|
* shorten: merge decoding of FN_DIFF* subblocks into decode_subframe_lpc()Justin Ruggles2011-10-20
|
* cosmetics: remove some needless commented-out stuffJustin Ruggles2011-10-20
|
* shorten: validate block sizeJustin Ruggles2011-10-20
|
* shorten: move declaration of 'ret' to top of shorten_decode_frame()Justin Ruggles2011-10-20
|
* shorten: pass on error value from allocate_buffers() instead of returning -1Justin Ruggles2011-10-20
|
* shorten: check for realloc failureJustin Ruggles2011-10-20
|
* shorten: move decoding of prediction order and applying of global offset toJustin Ruggles2011-10-20
| | | | decode_subframe_lpc().
* shorten: only calculate output size when returning decoded samples, otherwiseJustin Ruggles2011-10-20
| | | | just set data_size to zero.
* cosmetics: reindentJustin Ruggles2011-10-20
|
* shorten: separate processing of audio commands from non-audio commandsJustin Ruggles2011-10-20
|
* shorten: skip some fields in the WAV header embedded in the shorten header.Justin Ruggles2011-10-20
| | | | | fixes incorrect bitrate reporting and potential misreporting of the number of channels.
* shorten: split reading of file header into a separate functionsJustin Ruggles2011-10-20
|
* shorten: remove the flush function.Justin Ruggles2011-10-13
| | | | The shorten decoder does not support seeking.
* shorten: Fix out of bound writes in fix_bitshift()Laurent Aimar2011-10-07
| | | | | | The data pointers s->decoded[*] already take into account s->nwrap. Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* shorten: Prevent block size from increasingLaurent Aimar2011-10-07
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>