594d4d5df3 
								
							
								 
							
						 
						
							
							
								
								lavc: add a wrapper for AVCodecContext.get_buffer().  
							
							It will be useful in the upcoming transition to refcounted AVFrames. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a7ee6281f7 
								
							
								 
							
						 
						
							
							
								
								qdm2: check array index before use, fix out of array accesses  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0efcf16a3e 
								
							
								 
							
						 
						
							
							
								
								replace av_log(0, by av_log(NULL,  
							
							The first parameter is a pointer and NULL is more correct
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9ccc349f77 
								
							
								 
							
						 
						
							
							
								
								ensure comment blocks that contain doxygen commands start with double asterix  
							
							Reveiwed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a903f8f087 
								
							
								 
							
						 
						
							
							
								
								Include libavutil/channel_layout.h instead of libavutil/audioconvert.h  
							
							Also reorder some other #include when applicable. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5ee008e01d 
								
							
								 
							
						 
						
							
							
								
								qdm2: check that coding_method is valid before using it.  
							
							Fixes out of array reads.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eb38d8fe92 
								
							
								 
							
						 
						
							
							
								
								qdm2: remove unneeded checks for channel count  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								be2ab8b75a 
								
							
								 
							
						 
						
							
							
								
								qdm2: make sure channels is not <= 0 and set channel layout  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36a8c43073 
								
							
								 
							
						 
						
							
							
								
								doxygen: qdm2: Drop documentation for non-existing function parameters  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36ef5369ee 
								
							
								 
							
						 
						
							
							
								
								Replace all CODEC_ID_* with AV_CODEC_ID_*  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bb58c43c69 
								
							
								 
							
						 
						
							
							
								
								qdm2: remove broken and disabled dump_context() debug function  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8a0efa9cc0 
								
							
								 
							
						 
						
							
							
								
								qdm2: fix incorrect error spam  
							
							Fixes Ticket1375
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								66337bf9d5 
								
							
								 
							
						 
						
							
							
								
								qdm2: print error messages instead of just retunring failures  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								64953f67f9 
								
							
								 
							
						 
						
							
							
								
								qdm2: clip array indices returned by qdm2_get_vlc().  
							
							Prevents subsequent overreads when these numbers are used as indices
in arrays.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org 
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								20335598f2 
								
							
								 
							
						 
						
							
							
								
								qdm2_fft_decode_tones: fix infinite loop  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1a974679d0 
								
							
								 
							
						 
						
							
							
								
								qdm2: Check vlc_stage3_values index.  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								f5be7958e3 
								
							
								 
							
						 
						
							
							
								
								qdm2: fix a dubious pointer cast  
							
							This reworks a loop to get rid of an ugly pointer cast,
fixing errors seen with the PathScale ENZO compiler.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9f3e781eab 
								
							
								 
							
						 
						
							
							
								
								qdm2: make a table static const  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9ffe8ee7c5 
								
							
								 
							
						 
						
							
							
								
								qdm2: simplify bitstream reader setup for some subpacket types  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a31787ee3b 
								
							
								 
							
						 
						
							
							
								
								qdm2: use get_bits_left()  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								00c3b67b8a 
								
							
								 
							
						 
						
							
							
								
								cosmetics: Align codec declarations  
							
							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> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cece491daa 
								
							
								 
							
						 
						
							
							
								
								qdm2: Fix out of array writes  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fe91becc2d 
								
							
								 
							
						 
						
							
							
								
								qdm2: fix out of array read  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7d74aaf698 
								
							
								 
							
						 
						
							
							
								
								qdm2dec: fix out of array read  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a8ae00b68c 
								
							
								 
							
						 
						
							
							
								
								qdm2: Check data block size for bytes to bits overflow.  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org 
(cherry picked from commit dac56d9ce0 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dac56d9ce0 
								
							
								 
							
						 
						
							
							
								
								qdm2: Check data block size for bytes to bits overflow.  
							
							Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org  
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								aaf47bcde7 
								
							
								 
							
						 
						
							
							
								
								Drop ALT_ prefix from BITSTREAM_READER_LE name.  
							
							The prefix is a historic remnant that probably meant "alternative".
Now that the A32 bitstream reader has been dropped it makes no sense anymore. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0eea212943 
								
							
								 
							
						 
						
							
							
								
								Add avcodec_decode_audio4().  
							
							Deprecate avcodec_decode_audio3().
Implement audio support in avcodec_default_get_buffer().
Implement the new audio decoder API in all audio decoders. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								895d258e9b 
								
							
								 
							
						 
						
							
							
								
								qdm2dec: fix buffer overflow.  
							
							Fixes NGS00144
Thanks to Phillip for suggestions to improve the patch.
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								14db3af4f2 
								
							
								 
							
						 
						
							
							
								
								qdm2dec: check remaining input bits in the mainloop of qdm2_fft_decode_tones()  
							
							This is neccessary but likely not sufficient to prevent out of array reads.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								7d49f79f1c 
								
							
								 
							
						 
						
							
							
								
								qdm2: check output buffer size before decoding  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5a19acb17c 
								
							
								 
							
						 
						
							
							
								
								Fix out of bound reads in the QDM2 decoder.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								291d74a46d 
								
							
								 
							
						 
						
							
							
								
								Check for out of bound writes in the QDM2 decoder.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4a7876c6e4 
								
							
								 
							
						 
						
							
							
								
								Check for out of bound writes in the QDM2 decoder.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								491eaf35ae 
								
							
								 
							
						 
						
							
							
								
								Fix out of bound reads in the QDM2 decoder.  
							
							Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ec679eb453 
								
							
								 
							
						 
						
							
							
								
								doxygen: place empty line between brief description and detailed description  
							
							Without it, Doxygen cannot separate them into different sections. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								3a07f5a47a 
								
							
								 
							
						 
						
							
							
								
								qdm2: Fix alignment of local array.  
							
							Fixes ticket270
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								44d1b4088f 
								
							
								 
							
						 
						
							
							
								
								qdm2: Fix alignment of local array.  
							
							Fixes ticket270
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								984ece7503 
								
							
								 
							
						 
						
							
							
								
								qdm2: Use floating point synthesis filter.  
							
							This avoid needlessly convertion from floating point to fixed point and back.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c4f5c2d6f4 
								
							
								 
							
						 
						
							
							
								
								Move some mpegaudio functions to new mpegaudiodsp subsystem  
							
							This separation allows these functions to be used in a cleaner
fashion from other codecs (e.g. qdm2) and simplifies creating
optimised versions of them.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4bac1bbc3b 
								
							
								 
							
						 
						
							
							
								
								mpegaudio: add _fixed suffix to some names  
							
							This adds a _fixed suffix to the fixed-point versions of things
with both float and fixed-point variants.  This makes it more
consistent with other dual-implementation things, e.g. fft.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1362a291c9 
								
							
								 
							
						 
						
							
							
								
								qdm2: include correct header for rdft  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9d35fa520e 
								
							
								 
							
						 
						
							
							
								
								Add AVX FFT implementation.  
							
							Signed-off-by: Reinhard Tartler <siretart@tauware.de> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								26f548bb59 
								
							
								 
							
						 
						
							
							
								
								fft: remove inline wrappers for function pointers  
							
							This removes the rather pointless wrappers (one not even inline)
for calling the fft_calc and related function pointers.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e7e2df27f8 
								
							
								 
							
						 
						
							
							
								
								Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.  
							
							None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit d36beb3f69 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d36beb3f69 
								
							
								 
							
						 
						
							
							
								
								Add ff_ prefix to data symbols of encoders, decoders, hwaccel, parsers, bsf.  
							
							None of these symbols should be accessed directly, so declare them as
hidden.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0c1758f018 
								
							
								 
							
						 
						
							
							
								
								Return the amount of input data actually used in the qdm2 decoder,  
							
							allows playback of files where multiple qdm2 packets have been merged.
Originally committed as revision 25943 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								47d2ddca80 
								
							
								 
							
						 
						
							
							
								
								Fix qdm2 decoder packet handling to match the api  
							
							Originally committed as revision 25767 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5d6e4c160a 
								
							
								 
							
						 
						
							
							
								
								Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum  
							
							SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago