4e11b15534 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Calculate code-block coord in ff_jpeg2000_init_component()  
							
							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> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4cbd5ed11b 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Fix compute precedence error in lut_gain index  
							
							Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b44925ae6b 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Initialize code blocks structures in precincts to 0  
							
							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> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cf04af2086 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Check that we have enough components for MCT  
							
							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> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b564784a20 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Check that there is a SOT before SOD  
							
							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> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2c3901b2c3 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Remove unneeded returns  
							
							Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ef35d6dbc6 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Propagate error code from get_cox()  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								78962d3df4 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Check that nreslevels2decode has been initialized before use  
							
							Avoid buffer overread.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								86a2602e16 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Drop unused and writeonly fields  
							
							Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ac921338a4 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Correctly calculate sgnd  
							
							Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fd54dd028b 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: check len before parsing header  
							
							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> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eae63e3c15 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Check component number in get_coc() and get_qcc()  
							
							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> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								17e5d614a8 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Check zero bit-plane validity  
							
							Prevent integer overflows.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7e201d575d 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Validate block lengthinc  
							
							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> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								278a923c51 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Validate SIZ parsing  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d3cb302b88 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Validate SOT parsing  
							
							Avoid some overreads.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1a3598aae7 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Use bytestream2  
							
							Prevent a number of overreads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5efadcb8cd 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Clean up return paths and error messages  
							
							Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								be3271009e 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Define the maximum decomposition levels  
							
							And define the resolution levels according.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fbcc03db8f 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Check code-block size  
							
							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> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5650e331a7 
								
							
								 
							
						 
						
							
							
								
								jpeg2000: Validate resolution levels  
							
							There are 32 maximum decomposition levels, thus 33 resolution levels.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8ad3267ce3 
								
							
								 
							
						 
						
							
							
								
								oggdec: do not fall back on binary search in the generic code.  
							
							Binary search is already attempted in the format-specific seek function,
so the fallback is only reached if binary search failed already. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c8b920a9b7 
								
							
								 
							
						 
						
							
							
								
								lls/x86: use 3-operator vaddpd in ADDPD_MEM  
							
							Fixes build with yasm-1.1
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8bd9039900 
								
							
								 
							
						 
						
							
							
								
								Revert "indeo5: reject negative motion vectors"  
							
							Negative motion vectors are possible.
This reverts commit 1194a41080 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b36e1893ef 
								
							
								 
							
						 
						
							
							
								
								indeo: check for reference when inheriting mvs  
							
							The same is done already for qdelta.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1194a41080 
								
							
								 
							
						 
						
							
							
								
								indeo5: reject negative motion vectors  
							
							Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dd3754a488 
								
							
								 
							
						 
						
							
							
								
								indeo: use proper error code  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7388c0c586 
								
							
								 
							
						 
						
							
							
								
								indeo: Properly forward the error codes  
							
							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  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1221bb6239 
								
							
								 
							
						 
						
							
							
								
								x86: lpc: fix a segfault in av_evaluate_lls_sse2()  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6765ee7b9c 
								
							
								 
							
						 
						
							
							
								
								mjpeg: Check the unescaped size for overflows  
							
							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  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7520d9779c 
								
							
								 
							
						 
						
							
							
								
								mjpeg: Move code out of else branch  
							
							Simplify the control flow and spare some vertical space. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7798a59dc1 
								
							
								 
							
						 
						
							
							
								
								avconv: Don't include colorspace.h  
							
							The header is private, and avconv.c doesn't use it
for anything.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								02ec656af7 
								
							
								 
							
						 
						
							
							
								
								wmapro: error out on impossible scale factor offsets  
							
							Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d4a217a408 
								
							
								 
							
						 
						
							
							
								
								wmapro: check the min_samples_per_subframe  
							
							Must be at least WMAPRO_BLOCK_MIN_SIZE.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								183880cfc4 
								
							
								 
							
						 
						
							
							
								
								pictor: use the correct logging context  
							
							Broken in 6d97484d72 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c93ccf5a4c 
								
							
								 
							
						 
						
							
							
								
								lpc: use levinson for the first pass of multipass cholesky  
							
							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> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b545179fdf 
								
							
								 
							
						 
						
							
							
								
								x86: lpc: simd av_evaluate_lls  
							
							1.5x-1.8x faster on sandybridge
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								502ab21af0 
								
							
								 
							
						 
						
							
							
								
								x86: lpc: simd av_update_lls  
							
							4x-6x faster on sandybridge
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								41578f70cf 
								
							
								 
							
						 
						
							
							
								
								lpc: use function pointers, in preparation for asm  
							
							Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cc6714bb16 
								
							
								 
							
						 
						
							
							
								
								lpc: remove "decay" argument  
							
							We never used the rolling-average mode, and this makes av_update_lls 15% faster.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3822936252 
								
							
								 
							
						 
						
							
							
								
								wmapro: check num_vec_coeffs against the actual available buffer  
							
							Prevent yet another buffer overwrite.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6652338f43 
								
							
								 
							
						 
						
							
							
								
								wmapro: return early on unsupported condition  
							
							Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e30b068ef7 
								
							
								 
							
						 
						
							
							
								
								wmapro: make sure there is room to store the current packet  
							
							Prevent horrid and hard to trace struct overwrite.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								afe03092dd 
								
							
								 
							
						 
						
							
							
								
								lavc: move put_bits_left in put_bits.h  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								07c52e2c7c 
								
							
								 
							
						 
						
							
							
								
								aac: return meaningful errors  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								6d8629aac1 
								
							
								 
							
						 
						
							
							
								
								aac: K&R formatting cosmetics  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4f6b192e2e 
								
							
								 
							
						 
						
							
							
								
								configure: Do not omit frame pointers for msvc/icl debug builds  
							
							Because O1 or O2 are required to build libav with msvc/icl, this must be
explicitly set instead of just omitting Oy.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f4a16c52e 
								
							
								 
							
						 
						
							
							
								
								configure: Do not explicitly set Oy for msvc/icl  
							
							It is implied by O1 or O2, both of which are required to build libav
with msvc/icl.  Silences warnings when targeting x64 with icl.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b6507930ac 
								
							
								 
							
						 
						
							
							
								
								fate: Add Canopus Lossless YUY2 test  
							
							Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d9c89ef86b 
								
							
								 
							
						 
						
							
							
								
								cllc: Use outbuf in RGB and ARGB functions  
							
							Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> 
							
						 
						12 years ago