Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | lavc: AV-prefix all codec capabilities | Vittorio Giovara | 2015-07-27 | 1 | -1/+1 |
| | | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> | ||||
* | alac: Reject rice_limit 0 if compression is used | Andreas Cadhalpun | 2015-05-08 | 1 | -0/+6 |
| | | | | | | | | | | | If in compression mode rice_limit = 0 leads to call `show_bits(gb, k)` in `decode_scalar` with k = 0. Request a sample in case it is valid and it should be accepted. Signed-off-by: Luca Barbato <lu_zero@gentoo.org> CC: libav-stable@libav.org | ||||
* | avcodec: Don't anonymously typedef structs | Diego Biurrun | 2015-02-14 | 1 | -1/+1 |
| | |||||
* | avcodec: more correct printf specifiers | Diego Biurrun | 2014-03-22 | 1 | -3/+6 |
| | |||||
* | cosmetics: Group .name and .long_name together in codec/format declarations | Diego Biurrun | 2013-10-03 | 1 | -1/+1 |
| | |||||
* | alac: Do bounds checking of lpc_order read from the bitstream | Martin Storsjö | 2013-09-29 | 1 | -0/+3 |
| | | | | | | | | | In lpc_prediction(), we write up to array element 'lpc_order' in an array allocated to hold 'max_samples_per_frame' elements. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | alac: Check that the channels fit at the given offset | Martin Storsjö | 2013-09-03 | 1 | -1/+2 |
| | | | | | | | | | | | | | The code tries to decode a number of channels at the offset given by the ff_alac_channel_layout_offsets table. Even if the number of channels decoded so far doesn't exceed the total number of channels, we need to check that we actually can decode that number of channels at this offset as well. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | alac: Limit max_samples_per_frame | Martin Storsjö | 2013-09-03 | 1 | -1/+2 |
| | | | | | | | | | | Otherwise buffer size calculations in allocate_buffers could overflow later, making the code think a large enough buffer actually was allocated. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st> | ||||
* | avcodec: av_log_ask_for_sample() ---> avpriv_request_sample() | Diego Biurrun | 2013-03-13 | 1 | -2/+1 |
| | |||||
* | lavc decoders: work with refcounted frames. | Anton Khirnov | 2013-03-08 | 1 | -1/+1 |
| | |||||
* | alac: decode directly to the user-provided AVFrame | Justin Ruggles | 2013-02-12 | 1 | -12/+8 |
| | |||||
* | alacdec: do not be too strict about the extradata size | Justin Ruggles | 2012-12-22 | 1 | -4/+3 |
| | | | | | | | Sometimes the extradata has duplicate atoms, but that shouldn't prevent decoding. Just ensure that it is at least 36 bytes as a sanity check. CC: libav-stable@libav.org | ||||
* | alacenc: add support for multi-channel encoding | Justin Ruggles | 2012-12-05 | 1 | -40/+6 |
| | |||||
* | 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 | -1/+1 |
| | | | | Also reorder some other #include when applicable. | ||||
* | alacdec: set bits_per_raw_sample | Justin Ruggles | 2012-10-21 | 1 | -0/+1 |
| | |||||
* | Replace all CODEC_ID_* with AV_CODEC_ID_* | Anton Khirnov | 2012-08-07 | 1 | -1/+1 |
| | |||||
* | alac: check for truncated packets | Justin Ruggles | 2012-07-27 | 1 | -4/+11 |
| | | | | | This will give a clearer error message when the error is caused by a truncated packet. | ||||
* | alac: reverse lpc coeff order, simplify filter | Justin Ruggles | 2012-07-27 | 1 | -13/+12 |
| | | | | Reversing the lpc coefficient order simplifies indexing in the filter. | ||||
* | alac: fix channel pointer assignment for 24 and 32-bit | Justin Ruggles | 2012-07-19 | 1 | -4/+4 |
| | | | | Needs to be done separately for each element. | ||||
* | alac: cosmetics: general pretty-printing and comment clean up | Justin Ruggles | 2012-07-19 | 1 | -31/+18 |
| | |||||
* | alac: calculate buffer size outside the loop in allocate_buffers() | Justin Ruggles | 2012-07-19 | 1 | -2/+2 |
| | |||||
* | alac: change some data types to plain int | Justin Ruggles | 2012-07-19 | 1 | -5/+5 |
| | |||||
* | alac: cosmetics: rename some variables and function names | Justin Ruggles | 2012-07-19 | 1 | -93/+77 |
| | |||||
* | alac: multi-channel decoding support | Andrew D'Addesio | 2012-07-19 | 1 | -18/+43 |
| | | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> | ||||
* | alac: split element parsing into a separate function | Justin Ruggles | 2012-07-19 | 1 | -40/+81 |
| | | | | | This will make multi-channel implementation simpler. Based partially on a patch by Andrew D'Addesio <modchipv12@gmail.com>. | ||||
* | alac: support a read sample size of up to 32 | Justin Ruggles | 2012-07-19 | 1 | -10/+11 |
| | | | | | Use get_bits_long() in decode_scalar(). Use unsigned int for decoded value. | ||||
* | alac: output in planar sample format | Justin Ruggles | 2012-07-19 | 1 | -27/+19 |
| | | | | | Avoids unneeded interleaving and allows for reusing the AVFrame output buffer as the internal buffer for 24-bit and 32-bit sample size. | ||||
* | alac: add 32-bit decoding support | Justin Ruggles | 2012-07-19 | 1 | -1/+14 |
| | |||||
* | alac: simplify channel interleaving | Andrew D'Addesio | 2012-07-19 | 1 | -43/+14 |
| | | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> | ||||
* | alac: use AVPacket fields directly in alac_decode_frame() | Justin Ruggles | 2012-07-19 | 1 | -6/+5 |
| | |||||
* | alac: fix check for valid max_samples_per_frame | Justin Ruggles | 2012-07-19 | 1 | -3/+3 |
| | |||||
* | alac: use get_sbits() to read LPC coefficients instead of casting | Justin Ruggles | 2012-07-19 | 1 | -1/+1 |
| | |||||
* | alac: move the current samples per frame to the ALACContext | Justin Ruggles | 2012-07-19 | 1 | -23/+22 |
| | | | | This will simplify the multi-channel implementation. | ||||
* | alac: avoid using a double-negative when checking if the frame is compressed | Justin Ruggles | 2012-07-19 | 1 | -4/+3 |
| | |||||
* | alac: factor out output_size check in predictor_decompress_fir_adapt() | Justin Ruggles | 2012-07-19 | 1 | -5/+3 |
| | |||||
* | alac: factor out loading of next decoded sample in LPC prediction | Justin Ruggles | 2012-07-19 | 1 | -3/+4 |
| | |||||
* | alac: use index into buffer_out instead of incrementing the pointer | Justin Ruggles | 2012-07-19 | 1 | -8/+6 |
| | |||||
* | alac: simplify lpc coefficient adaptation | Justin Ruggles | 2012-07-19 | 1 | -31/+10 |
| | |||||
* | alac: reduce the number of local variables needed in lpc prediction | Justin Ruggles | 2012-07-19 | 1 | -12/+12 |
| | |||||
* | alac: simplify 1st order prediction and reading of warm-up samples | Justin Ruggles | 2012-07-19 | 1 | -13/+5 |
| | |||||
* | alac: cosmetics: reindent after last commit | Justin Ruggles | 2012-07-19 | 1 | -45/+45 |
| | |||||
* | alac: remove unneeded conditionals in predictor_decompress_fir_adapt() | Justin Ruggles | 2012-07-19 | 1 | -3/+0 |
| | |||||
* | alac: use sizeof() instead of hardcoded data sizes | Justin Ruggles | 2012-07-19 | 1 | -2/+4 |
| | |||||
* | alac: make block_size signed | Justin Ruggles | 2012-07-19 | 1 | -1/+1 |
| | | | | It does not need to be unsigned. | ||||
* | alac: remove a duplicate local variable | Justin Ruggles | 2012-07-19 | 1 | -1/+0 |
| | |||||
* | alac: conditionally set sign_modifier to 1 | Justin Ruggles | 2012-07-19 | 1 | -4/+2 |
| | | | | | It is already unconditionally set to 0 prior to this, so we can modify it only when needed. | ||||
* | alac: eliminate 2 unneeded local variables in bastardized_rice_decompress() | Justin Ruggles | 2012-07-19 | 1 | -16/+7 |
| | | | | | x_modified is just unnecessary, and final_val can be removed by simplifying the unsigned-to-signed conversion. | ||||
* | alac: adjust conditions for updating entropy decoder history | Justin Ruggles | 2012-07-19 | 1 | -3/+3 |
| | | | | avoids some unnecessary arithmetic in certain situations | ||||
* | alac: cosmetics: reindent after last commit | Justin Ruggles | 2012-07-19 | 1 | -8/+8 |
| |