759001c534 
								
							
								 
							
						 
						
							
							
								
								lavc decoders: work with refcounted frames.  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5cf7c72757 
								
							
								 
							
						 
						
							
							
								
								shorten: use the unsigned type where needed  
							
							get_uint returns an unsigned value, use an unsigned to store
blocksize to make sure the comparison logic is correct and report
correctly the error for the channel count not supported. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c364eb2b8 
								
							
								 
							
						 
						
							
							
								
								shorten: report meaningful errors  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a2ad554def 
								
							
								 
							
						 
						
							
							
								
								shorten: K&R formatting cosmetics  
							
							
								
							
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c10da30d84 
								
							
								 
							
						 
						
							
							
								
								shorten: set invalid channels count to 0  
							
							Prevent the loop shorten_decode_close from writing and freeing out of
the array boundary.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Luca Barbato <lu_zero@gentoo.org> 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fed74c0ae4 
								
							
								 
							
						 
						
							
							
								
								shorten: decode directly to the user-provided AVFrame  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4839fbe2d1 
								
							
								 
							
						 
						
							
							
								
								shorten: fix array subscript is below array bounds warning  
							
							Incidentally fixes alpha builds. 
							
						 
						12 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								511cf612ac 
								
							
								 
							
						 
						
							
							
								
								miscellaneous typo fixes  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								594d4d5df3 
								
							
								 
							
						 
						
							
							
								
								lavc: add a wrapper for AVCodecContext.get_buffer().  
							
							It will be useful in the upcoming transition to refcounted AVFrames. 
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								4c53f4aed3 
								
							
								 
							
						 
						
							
							
								
								shorten: validate that the channel count in the header is not <= 0  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								977eb7d567 
								
							
								 
							
						 
						
							
							
								
								shorten: use planar sample format  
							
							
								
							
							
						 
						13 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								36ef5369ee 
								
							
								 
							
						 
						
							
							
								
								Replace all CODEC_ID_* with AV_CODEC_ID_*  
							
							
								
							
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								204cb29b3c 
								
							
								 
							
						 
						
							
							
								
								shorten: Use separate pointers for the allocated memory for decoded samples.  
							
							Fixes invalid free() if any of the buffers are not allocated due to either
not decoding a header or an error prior to allocating all buffers.
Fixes CVE-2012-0858
CC: libav-stable@libav.org 
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								8562d9bd6c 
								
							
								 
							
						 
						
							
							
								
								shorten: avoid abort() on unknown audio types  
							
							Signed-off-by: Janne Grunau <janne-libav@jannau.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								eda8731285 
								
							
								 
							
						 
						
							
							
								
								shorten: remove dead initialization  
							
							Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com> 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								5c210e2cb9 
								
							
								 
							
						 
						
							
							
								
								shorten: do not modify samples pointer when interleaving  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								1baa25c7da 
								
							
								 
							
						 
						
							
							
								
								shorten: fix end-of-stream decoding.  
							
							enable CODEC_CAP_DELAY to flush any remaining frames in the buffer.
Stop decoding when the FN_QUIT command is found so that a trailing seek table
isn't decoded as a normal frame.
decode all channels in the same call to avcodec_decode_audio3() so that
decoding will not stop after the first channel of the last frame.
Updated FATE reference. More valid audio is now decoded. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								d03f9f65c0 
								
							
								 
							
						 
						
							
							
								
								shorten: do not use block size to determine whether to read the header.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								882dafe9b6 
								
							
								 
							
						 
						
							
							
								
								shorten: check output buffer size before decoding  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								bd7f7d6c78 
								
							
								 
							
						 
						
							
							
								
								shorten: use av_clip_int16() for output sample clipping  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								069ada46c1 
								
							
								 
							
						 
						
							
							
								
								shorten: use bytestream functions to decode the embedded WAVE header  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								c25762fcf1 
								
							
								 
							
						 
						
							
							
								
								shorten: add some comments  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								15d146c958 
								
							
								 
							
						 
						
							
							
								
								shorten: merge decoding of FN_DIFF* subblocks into decode_subframe_lpc()  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								034f42dfce 
								
							
								 
							
						 
						
							
							
								
								cosmetics: remove some needless commented-out stuff  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								cfa317f67d 
								
							
								 
							
						 
						
							
							
								
								shorten: validate block size  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								45d7d31fb9 
								
							
								 
							
						 
						
							
							
								
								shorten: move declaration of 'ret' to top of shorten_decode_frame()  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a8055992c0 
								
							
								 
							
						 
						
							
							
								
								shorten: pass on error value from allocate_buffers() instead of returning -1  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9e5e2c2d01 
								
							
								 
							
						 
						
							
							
								
								shorten: check for realloc failure  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								fe31a637f1 
								
							
								 
							
						 
						
							
							
								
								shorten: move decoding of prediction order and applying of global offset to  
							
							decode_subframe_lpc(). 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								0f97c5014b 
								
							
								 
							
						 
						
							
							
								
								shorten: only calculate output size when returning decoded samples, otherwise  
							
							just set data_size to zero. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e9e37f2d10 
								
							
								 
							
						 
						
							
							
								
								cosmetics: reindent  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								9000b6db22 
								
							
								 
							
						 
						
							
							
								
								shorten: separate processing of audio commands from non-audio commands  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								07745485ef 
								
							
								 
							
						 
						
							
							
								
								shorten: skip some fields in the WAV header embedded in the shorten header.  
							
							fixes incorrect bitrate reporting and potential misreporting of the number of
channels. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								a1f7885a8b 
								
							
								 
							
						 
						
							
							
								
								shorten: split reading of file header into a separate functions  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								617a51f9b7 
								
							
								 
							
						 
						
							
							
								
								shorten: remove the flush function.  
							
							The shorten decoder does not support seeking. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								5f05cf4ea9 
								
							
								 
							
						 
						
							
							
								
								shorten: Fix out of bound writes in fix_bitshift()  
							
							The data pointers s->decoded[*] already take into account s->nwrap.
Signed-off-by: Janne Grunau <janne-libav@jannau.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								95010d18b2 
								
							
								 
							
						 
						
							
							
								
								shorten: Prevent block size from increasing  
							
							Signed-off-by: Janne Grunau <janne-libav@jannau.net> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ec6402b7c5 
								
							
								 
							
						 
						
							
							
								
								lavc: use designated initialisers for all codecs.  
							
							It's more readable and less prone to breakage. 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b27565b143 
								
							
								 
							
						 
						
							
							
								
								Remove statements immediately following unconditional jumps  
							
							This removes a number of compiler warnings.
Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								b9478cfefb 
								
							
								 
							
						 
						
							
							
								
								shorten: Remove stray DEBUG #define and corresponding av_dlog statement.  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								e65ab9d94f 
								
							
								 
							
						 
						
							
							
								
								Remove unused variables  
							
							
								
							
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								2912e87a6c 
								
							
								 
							
						 
						
							
							
								
								Replace FFmpeg with Libav in licence headers  
							
							Signed-off-by: Mans Rullgard <mans@mansr.com> 
							
						 
						14 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								dfd2a005eb 
								
							
								 
							
						 
						
							
							
								
								Replace dprintf with av_dlog  
							
							dprintf clashes with POSIX.1-2008 
							
						 
						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  
				
					
						
							
							
								 
						
							
							
							
								
							
								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  
				
					
						
							
							
								 
						
							
							
							
								
							
								8fc0162ac4 
								
							
								 
							
						 
						
							
							
								
								Add av_ prefix to bswap macros  
							
							Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								02591641f8 
								
							
								 
							
						 
						
							
							
								
								shorten: remove VLA and check for buffer overflow  
							
							Originally committed as revision 23798 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago  
				
					
						
							
							
								 
						
							
							
							
								
							
								ba87f0801d 
								
							
								 
							
						 
						
							
							
								
								Remove explicit filename from Doxygen  @file  commands.  
							
							Passing an explicit filename to this command is only necessary if the
documentation in the @file  block refers to a file different from the
one the block resides in.
Originally committed as revision 22921 to svn://svn.ffmpeg.org/ffmpeg/trunk 
							
						 
						15 years ago