summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* jpeg2000: Update pixel format supportMichael Niedermayer2013-07-02
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Compute corrections of sub-band coordinatesMichael Niedermayer2013-07-02
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Remove unneeded variable initializationMichael Niedermayer2013-07-02
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Use separate fields for int and float codepathsMichael Niedermayer2013-07-02
| | | | | | | Split stepsize and data into int and float variants. Eliminates a number of casts and simplifies spotting errors. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Split int/float codepaths depending on the DWTMichael Niedermayer2013-07-02
| | | | | | DWT53 is always int, DWT97 is always float. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Improve reduced resolution decodingMichael Niedermayer2013-07-02
| | | | | | | Correctly scale down the component coordinates and clean up some redundant code. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Compute quantization for 'scalar derived' in the correct case.Michael Niedermayer2013-07-02
| | | | | | Scalar derived case is represented by the JPEG2K_QSTY_SI define. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Calculate code-block coord in ff_jpeg2000_init_component()Michael Niedermayer2013-07-02
| | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Nicolas Bertrand <nicoinattendu@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Fix compute precedence error in lut_gain indexMichael Niedermayer2013-07-02
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Initialize code blocks structures in precincts to 0Michael Niedermayer2013-07-02
| | | | | | | | Prevent use of uninitialized memory / valgrind failure. Found-by: ubitux Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Check that we have enough components for MCTMichael Niedermayer2013-07-02
| | | | | | | | Avoid overread. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Check that there is a SOT before SODMichael Niedermayer2013-07-02
| | | | | | | | Avoid overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Remove unneeded returnsMichael Niedermayer2013-07-02
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Propagate error code from get_cox()Michael Niedermayer2013-07-02
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Check that nreslevels2decode has been initialized before useMichael Niedermayer2013-07-02
| | | | | | | Avoid buffer overread. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Drop unused and writeonly fieldsMichael Niedermayer2013-07-02
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Correctly calculate sgndMichael Niedermayer2013-07-02
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: check len before parsing headerMichael Niedermayer2013-07-02
| | | | | | | | Avoid overread. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Check component number in get_coc() and get_qcc()Michael Niedermayer2013-07-02
| | | | | | | | | Avoid overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Nicolas Bertrand <nicoinattendu@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Check zero bit-plane validityMichael Niedermayer2013-07-02
| | | | | | Prevent integer overflows. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Validate block lengthincLuca Barbato2013-07-02
| | | | | | | | | | Currently we are using an array with a static data size. Similar to a patch with the same purpose by Michael Niedermayer. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Validate SIZ parsingMichael Niedermayer2013-07-02
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Validate SOT parsingMichael Niedermayer2013-07-02
| | | | | | Avoid some overreads. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Use bytestream2Michael Niedermayer2013-07-02
| | | | | | | Prevent a number of overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Clean up return paths and error messagesLuca Barbato2013-07-02
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Define the maximum decomposition levelsLuca Barbato2013-07-02
| | | | | | And define the resolution levels according. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Check code-block sizeMichael Niedermayer2013-07-02
| | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Nicolas Bertrand <nicoinattendu@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* jpeg2000: Validate resolution levelsLuca Barbato2013-07-02
| | | | | | There are 32 maximum decomposition levels, thus 33 resolution levels. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* oggdec: do not fall back on binary search in the generic code.Anton Khirnov2013-07-02
| | | | | Binary search is already attempted in the format-specific seek function, so the fallback is only reached if binary search failed already.
* lls/x86: use 3-operator vaddpd in ADDPD_MEMLoren Merritt2013-07-02
| | | | | | Fixes build with yasm-1.1 Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Revert "indeo5: reject negative motion vectors"Luca Barbato2013-07-01
| | | | | | Negative motion vectors are possible. This reverts commit 1194a410807bac3eafbeb632578b937656d273e7.
* indeo: check for reference when inheriting mvsLuca Barbato2013-07-01
| | | | | | | The same is done already for qdelta. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* indeo5: reject negative motion vectorsLuca Barbato2013-07-01
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* indeo: use proper error codeLuca Barbato2013-07-01
|
* indeo: Properly forward the error codesLuca Barbato2013-07-01
| | | | | | | | If the tile data size does not match the buffer size it did not return an AVERROR_INVALIDDATA causing futher corruption later. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* x86: lpc: fix a segfault in av_evaluate_lls_sse2()Loren Merritt2013-06-30
|
* mjpeg: Check the unescaped size for overflowsLuca Barbato2013-06-30
| | | | | | | | And contextually check init_get_bits success and fix the reporting message. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mjpeg: Move code out of else branchLuca Barbato2013-06-30
| | | | Simplify the control flow and spare some vertical space.
* avconv: Don't include colorspace.hDerek Buitenhuis2013-06-29
| | | | | | | The header is private, and avconv.c doesn't use it for anything. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* wmapro: error out on impossible scale factor offsetsLuca Barbato2013-06-29
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* wmapro: check the min_samples_per_subframeLuca Barbato2013-06-29
| | | | | | | Must be at least WMAPRO_BLOCK_MIN_SIZE. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* pictor: use the correct logging contextLuca Barbato2013-06-29
| | | | Broken in 6d97484d72e33f7dde9493a9ead1a72e2f029605
* lpc: use levinson for the first pass of multipass choleskyLoren Merritt2013-06-29
| | | | | | | Levinson is faster, and cholesky is only needed if we want to apply different weights to different samples, which doesn't happen on the first pass. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* x86: lpc: simd av_evaluate_llsLoren Merritt2013-06-29
| | | | | | 1.5x-1.8x faster on sandybridge Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* x86: lpc: simd av_update_llsLoren Merritt2013-06-29
| | | | | | 4x-6x faster on sandybridge Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lpc: use function pointers, in preparation for asmLoren Merritt2013-06-29
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lpc: remove "decay" argumentLoren Merritt2013-06-29
| | | | | | We never used the rolling-average mode, and this makes av_update_lls 15% faster. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* wmapro: check num_vec_coeffs against the actual available bufferLuca Barbato2013-06-28
| | | | | | | Prevent yet another buffer overwrite. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* wmapro: return early on unsupported conditionLuca Barbato2013-06-28
| | | | | Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* wmapro: make sure there is room to store the current packetLuca Barbato2013-06-28
| | | | | | | Prevent horrid and hard to trace struct overwrite. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org