Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | shorten: pad the internal bitstream buffer | Anton Khirnov | 2014-02-04 | 1 | -1/+1 |
| | | | | | | | Fixes invalid reads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC:libav-stable@libav.org | ||||
* | avcodec: Use av_reallocp where suitable | Alexandra Khirnova | 2013-12-09 | 1 | -17/+10 |
| | | | | Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | shorten: Fix out-of-array read | Tim Walker | 2013-10-10 | 1 | -1/+1 |
| | | | | | | 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 0 | Luca Barbato | 2013-10-09 | 1 | -2/+8 |
| | | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org | ||||
* | cosmetics: Group .name and .long_name together in codec/format declarations | Diego Biurrun | 2013-10-03 | 1 | -1/+1 |
| | |||||
* | shorten: Break out of loop looking for fmt chunk if none is found | Martin Storsjö | 2013-09-12 | 1 | -0/+4 |
| | | | | | | 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 header | Martin Storsjö | 2013-09-12 | 1 | -13/+16 |
| | | | | | | 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 Khirnov | 2013-03-08 | 1 | -1/+1 |
| | |||||
* | shorten: use the unsigned type where needed | Luca Barbato | 2013-03-06 | 1 | -4/+9 |
| | | | | | | 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 errors | Luca Barbato | 2013-03-06 | 1 | -14/+14 |
| | |||||
* | shorten: K&R formatting cosmetics | Luca Barbato | 2013-03-06 | 1 | -106/+113 |
| | |||||
* | shorten: set invalid channels count to 0 | Michael Niedermayer | 2013-03-06 | 1 | -0/+1 |
| | | | | | | | | 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 AVFrame | Justin Ruggles | 2013-02-12 | 1 | -9/+5 |
| | |||||
* | shorten: fix array subscript is below array bounds warning | Luca Barbato | 2013-01-28 | 1 | -1/+1 |
| | | | | Incidentally fixes alpha builds. | ||||
* | miscellaneous typo fixes | Diego Biurrun | 2012-12-21 | 1 | -1/+2 |
| | |||||
* | lavc: add a wrapper for AVCodecContext.get_buffer(). | Anton Khirnov | 2012-12-04 | 1 | -1/+2 |
| | | | | It will be useful in the upcoming transition to refcounted AVFrames. | ||||
* | shorten: validate that the channel count in the header is not <= 0 | Justin Ruggles | 2012-11-01 | 1 | -1/+1 |
| | |||||
* | shorten: use planar sample format | Justin Ruggles | 2012-10-14 | 1 | -9/+14 |
| | |||||
* | Replace all CODEC_ID_* with AV_CODEC_ID_* | Anton Khirnov | 2012-08-07 | 1 | -1/+1 |
| | |||||
* | cosmetics: Align codec declarations | Martin Storsjö | 2012-04-06 | 1 | -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> | ||||
* | shorten: Use separate pointers for the allocated memory for decoded samples. | Michael Niedermayer | 2012-02-16 | 1 | -6/+8 |
| | | | | | | | | | | | 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 types | John Brooks | 2011-12-08 | 1 | -3/+5 |
| | | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net> | ||||
* | shorten: remove dead initialization | Paul B. Mahol | 2011-12-04 | 1 | -1/+0 |
| | | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> | ||||
* | Add avcodec_decode_audio4(). | Justin Ruggles | 2011-12-02 | 1 | -19/+26 |
| | | | | | | 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 interleaving | Justin Ruggles | 2011-11-11 | 1 | -3/+4 |
| | |||||
* | shorten: fix end-of-stream decoding. | Justin Ruggles | 2011-10-20 | 1 | -14/+33 |
| | | | | | | | | | | | | 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 Ruggles | 2011-10-20 | 1 | -2/+4 |
| | |||||
* | shorten: check output buffer size before decoding | Justin Ruggles | 2011-10-20 | 1 | -1/+7 |
| | |||||
* | shorten: use av_clip_int16() for output sample clipping | Justin Ruggles | 2011-10-20 | 1 | -1/+1 |
| | |||||
* | shorten: use bytestream functions to decode the embedded WAVE header | Justin Ruggles | 2011-10-20 | 1 | -26/+17 |
| | |||||
* | shorten: add some comments | Justin Ruggles | 2011-10-20 | 1 | -0/+18 |
| | |||||
* | shorten: merge decoding of FN_DIFF* subblocks into decode_subframe_lpc() | Justin Ruggles | 2011-10-20 | 1 | -44/+39 |
| | |||||
* | cosmetics: remove some needless commented-out stuff | Justin Ruggles | 2011-10-20 | 1 | -2/+0 |
| | |||||
* | shorten: validate block size | Justin Ruggles | 2011-10-20 | 1 | -2/+15 |
| | |||||
* | shorten: move declaration of 'ret' to top of shorten_decode_frame() | Justin Ruggles | 2011-10-20 | 1 | -2/+2 |
| | |||||
* | shorten: pass on error value from allocate_buffers() instead of returning -1 | Justin Ruggles | 2011-10-20 | 1 | -3/+3 |
| | |||||
* | shorten: check for realloc failure | Justin Ruggles | 2011-10-20 | 1 | -3/+17 |
| | |||||
* | shorten: move decoding of prediction order and applying of global offset to | Justin Ruggles | 2011-10-20 | 1 | -17/+27 |
| | | | | decode_subframe_lpc(). | ||||
* | shorten: only calculate output size when returning decoded samples, otherwise | Justin Ruggles | 2011-10-20 | 1 | -4/+6 |
| | | | | just set data_size to zero. | ||||
* | cosmetics: reindent | Justin Ruggles | 2011-10-20 | 1 | -81/+81 |
| | |||||
* | shorten: separate processing of audio commands from non-audio commands | Justin Ruggles | 2011-10-20 | 1 | -34/+39 |
| | |||||
* | shorten: skip some fields in the WAV header embedded in the shorten header. | Justin Ruggles | 2011-10-20 | 1 | -3/+4 |
| | | | | | fixes incorrect bitrate reporting and potential misreporting of the number of channels. | ||||
* | shorten: split reading of file header into a separate functions | Justin Ruggles | 2011-10-20 | 1 | -61/+70 |
| | |||||
* | shorten: remove the flush function. | Justin Ruggles | 2011-10-13 | 1 | -8/+0 |
| | | | | The shorten decoder does not support seeking. | ||||
* | shorten: Fix out of bound writes in fix_bitshift() | Laurent Aimar | 2011-10-07 | 1 | -1/+1 |
| | | | | | | 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 increasing | Laurent Aimar | 2011-10-07 | 1 | -2/+8 |
| | | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net> | ||||
* | lavc: use designated initialisers for all codecs. | Anton Khirnov | 2011-07-29 | 1 | -8/+7 |
| | | | | It's more readable and less prone to breakage. | ||||
* | Remove statements immediately following unconditional jumps | Mans Rullgard | 2011-07-03 | 1 | -3/+0 |
| | | | | | | This removes a number of compiler warnings. Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | shorten: Remove stray DEBUG #define and corresponding av_dlog statement. | Diego Biurrun | 2011-06-07 | 1 | -2/+0 |
| | |||||
* | Remove unused variables | Mans Rullgard | 2011-06-02 | 1 | -2/+1 |
| |