Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cosmetics: Group .name and .long_name together in codec/format declarations | Diego Biurrun | 2013-10-03 | 1 | -1/+1 |
| | |||||
* | apedec: do not buffer decoded samples over AVPackets | Rafaël Carré | 2013-08-28 | 1 | -3/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | Only consume an AVPacket when all the samples have been read. When the rate of samples output is limited (by the default value of max_samples), consuming the first packet immediately will cause timing problems: - The first packet with PTS 0 will output 4608 samples and be consumed entirely - The second packet with PTS 64 will output the remaining samples (typically, a lot, that's why max_samples exist) until the decoded samples of the first packet have been exhausted, at which point the samples of the second packet will be decoded and output when av_decode_frame is called with the next packet). That means there's a PTS jump since the first packet is 'decoded' immediately, which can be seen with avplay or mplayer: the timing jumps immediately to 6.2s (which is the size of a packet). Sample: http://streams.videolan.org/issues/6348/Goldwave-MAClib.ape Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> | ||||
* | ape: 3.80-3.92 decoding support | Kostya Shishkov | 2013-03-25 | 1 | -22/+455 |
| | |||||
* | add support for Monkey's Audio versions from 3.93 | Kostya Shishkov | 2013-03-15 | 1 | -2/+89 |
| | |||||
* | ape: provide two additional bytes in buffer for old MAC versions | Kostya Shishkov | 2013-03-15 | 1 | -1/+3 |
| | | | | Range coder in 3.90-3.95 overread two bytes in the final normalize. | ||||
* | ape: make version-dependent decoding functions called via pointers | Kostya Shishkov | 2013-03-15 | 1 | -59/+123 |
| | | | | | | | This will help in supporting old versions, e.g. version 3.93 uses the same range coder but different predictor and version 3.82 uses different range coder and predictor. Also this should not make decoding newer versions slower by introducing additional checks on versions. | ||||
* | avcodec: av_log_ask_for_sample() ---> avpriv_request_sample() | Diego Biurrun | 2013-03-13 | 1 | -2/+2 |
| | |||||
* | lavc decoders: work with refcounted frames. | Anton Khirnov | 2013-03-08 | 1 | -1/+1 |
| | |||||
* | ape: decode directly to the user-provided AVFrame | Justin Ruggles | 2013-02-12 | 1 | -11/+7 |
| | |||||
* | 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. | ||||
* | Include libavutil/channel_layout.h instead of libavutil/audioconvert.h | Justin Ruggles | 2012-11-11 | 1 | -3/+3 |
| | | | | Also reorder some other #include when applicable. | ||||
* | apedec: output in planar sample format | Justin Ruggles | 2012-10-01 | 1 | -19/+20 |
| | |||||
* | avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member | Martin Storsjö | 2012-09-04 | 1 | -1/+1 |
| | | | | Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member | Martin Storsjö | 2012-09-04 | 1 | -1/+1 |
| | | | | Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | Replace all CODEC_ID_* with AV_CODEC_ID_* | Anton Khirnov | 2012-08-07 | 1 | -1/+1 |
| | |||||
* | ape: Use unsigned integer maths | Christophe Gisquet | 2012-05-10 | 1 | -2/+2 |
| | | | | | | This involves a division that should be a shift. Signed-off-by: Diego Biurrun <diego@biurrun.de> | ||||
* | cosmetics: Align codec declarations | Martin Storsjö | 2012-04-06 | 1 | -2/+2 |
| | | | | | | | 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> | ||||
* | apedec: check bits <= 32. | Michael Niedermayer | 2012-03-31 | 1 | -1/+4 |
| | | | | | | | | | | Fixes a floating-point exception further down. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> | ||||
* | dsputil: Add ff_ prefix to the dsputil*_init* functions | Martin Storsjö | 2012-02-15 | 1 | -1/+1 |
| | | | | Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | apedec: allow the user to set the maximum number of output samples per call | Justin Ruggles | 2012-02-07 | 1 | -2/+20 |
| | | | | | | | It makes sense in some cases to split up the output packet to save on memory usage (ape frames can be very large), but the current/default size is arbitrary. Allowing the user to configure this gives more flexibility and requires minimal additional code. | ||||
* | apedec: do not unnecessarily zero output samples for mono frames | Justin Ruggles | 2012-02-07 | 1 | -11/+4 |
| | |||||
* | apedec: allocate a single flat buffer for decoded samples | Justin Ruggles | 2012-02-07 | 1 | -24/+29 |
| | | | | | This will allow the decoder to return samples for the full packet, and it also makes the decoded buffer pointers aligned. | ||||
* | apedec: use sizeof(field) instead of sizeof(type) | Justin Ruggles | 2012-02-07 | 1 | -8/+10 |
| | |||||
* | apedec: 8bit and 24bit support | Paul B Mahol | 2012-02-04 | 1 | -11/+45 |
| | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> | ||||
* | apedec: remove unneeded #include of get_bits.h and associated macro | Justin Ruggles | 2012-02-02 | 1 | -2/+0 |
| | |||||
* | apedec: av_fast_malloc() instead of av_realloc() | Justin Ruggles | 2012-02-02 | 1 | -4/+5 |
| | | | | | av_realloc() does not guarantee alignment, which is required for DSPContext.bswap_buf(). | ||||
* | apedec: fix handling of packet sizes that are not a multiple of 4 bytes | Justin Ruggles | 2012-02-02 | 1 | -6/+11 |
| | |||||
* | Drop ALT_ prefix from BITSTREAM_READER_LE name. | Diego Biurrun | 2011-12-22 | 1 | -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. | ||||
* | Add avcodec_decode_audio4(). | Justin Ruggles | 2011-12-02 | 1 | -15/+22 |
| | | | | | | Deprecate avcodec_decode_audio3(). Implement audio support in avcodec_default_get_buffer(). Implement the new audio decoder API in all audio decoders. | ||||
* | apedec: fix signed integer overflows | Mans Rullgard | 2011-11-26 | 1 | -1/+1 |
| | | | | | | | This bit manipulation is equivalent but avoids undefined shifts and overflows. Signed-off-by: Mans Rullgard <mans@mansr.com> | ||||
* | apedec: consume the whole packet when copying to the decoder buffer. | Justin Ruggles | 2011-11-10 | 1 | -7/+9 |
| | | | | | This avoids artifically consuming a partial packet but ignoring remaining data in subsequent calls. | ||||
* | apedec: do not needlessly copy s->samples to nblocks. | Justin Ruggles | 2011-11-10 | 1 | -4/+2 |
| | | | | also move nblocks to the local scope where it is used. | ||||
* | apedec: check output buffer size after calculating actual output size | Justin Ruggles | 2011-11-10 | 1 | -8/+10 |
| | |||||
* | apedec: remove unneeded entropy decoder normalization. | Justin Ruggles | 2011-11-10 | 1 | -11/+1 |
| | | | | | | The decoder already skips data at the end of the packet without this. Also remove 2 APEContext fields that were only used for the end-of-frame normalization. | ||||
* | apedec: assert that s->samples is not negative before trying to decode | Justin Ruggles | 2011-10-28 | 1 | -0/+5 |
| | |||||
* | apedec: use FFALIGN macro for internal data buffer size | Justin Ruggles | 2011-10-28 | 1 | -1/+1 |
| | |||||
* | apedec: do not keep incrementing the input data pointer past the end of the | Justin Ruggles | 2011-10-28 | 1 | -3/+6 |
| | | | | | | | | buffer during entropy decoding. The pointer address could overflow, which would likely segfault. Instead set the context error flag to indicate that the decoder tried to read past the end of the packet data. | ||||
* | apedec: check for input buffer overflow while reading frame header | Justin Ruggles | 2011-10-28 | 1 | -6/+28 |
| | |||||
* | apedec: use unsigned int for offset | Justin Ruggles | 2011-10-28 | 1 | -4/+5 |
| | | | | | avoids implementation-defined unsigned-to-signed conversion and simplifies the bounds checking. | ||||
* | apedec: remove pointless increment of 'buf' | Justin Ruggles | 2011-10-28 | 1 | -1/+0 |
| | | | | The variable is not used anymore at that point. | ||||
* | apedec: set s->currentframeblocks after validating nblocks | Justin Ruggles | 2011-10-28 | 1 | -2/+1 |
| | |||||
* | apedec: use unsigned int for 'nblocks' and make sure that it's within int range | Justin Ruggles | 2011-10-28 | 1 | -4/+4 |
| | |||||
* | apedec: do not set s->samples until after validation. | Justin Ruggles | 2011-10-28 | 1 | -2/+3 |
| | | | | | This prevents errors and/or invalid writes in the next decode call due to s->samples still being negative. | ||||
* | apedec: check for data buffer realloc failure | Justin Ruggles | 2011-10-28 | 1 | -1/+4 |
| | |||||
* | apedec: return meaningful error values in ape_decode_frame() | Justin Ruggles | 2011-10-28 | 1 | -3/+3 |
| | |||||
* | apedec: correct an error message | Justin Ruggles | 2011-10-28 | 1 | -3/+1 |
| | |||||
* | apedec: cosmetics | Justin Ruggles | 2011-10-28 | 1 | -36/+52 |
| | | | | break some excessively long lines and remove space after '*' | ||||
* | apedec: return meaningful error codes from ape_decode_init() | Justin Ruggles | 2011-10-28 | 1 | -4/+4 |
| | |||||
* | apedec: check for filter buffer allocation failure | Justin Ruggles | 2011-10-28 | 1 | -13/+18 |
| | |||||
* | apedec: use memcpy for pseudo-stereo mode | Justin Ruggles | 2011-10-28 | 1 | -5/+1 |
| |