mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 04:26:37 +08:00 
			
		
		
		
	
			
				
					
						
					
					35005a4af1ebe1ec1b5724121a03036705417fc7
				
			
			
		
	 Andreas Rheinhardt
		
	
	35005a4af1
	
	
	avformat/flac_picture: Simplify checks
			Andreas Rheinhardt
		
	
	35005a4af1
	
	
	avformat/flac_picture: Simplify checks
		
			
			During parsing a flac picture metadata block, the mimetype is read as follows: Its 32b size field is read and checked for being in the range 1..63; afterwards, the actual mimetype-string is read into a buffer of size 64, where the length to read is the minimum of the length field and the size of the destination buffer -1. Then an assert guards that length is indeed < the size of the destination buffer before the string in the buffer is zero-terminated. The FFMIN as well as the assert are actually redundant, as it has been checked that the string (even after terminating) fits into the buffer. In order to make this clear, reword the check "len >= 64" to "len >= sizeof(mimetype)" and drop the FFMIN as well as the assert. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
				
					… 
				
			
			
		
				
					… 
				
			
			
		FFmpeg README
FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.
Libraries
- libavcodecprovides implementation of a wider range of codecs.
- libavformatimplements streaming protocols, container formats and basic I/O access.
- libavutilincludes hashers, decompressors and miscellaneous utility functions.
- libavfilterprovides a mean to alter decoded Audio and Video through chain of filters.
- libavdeviceprovides an abstraction to access capture and playback devices.
- libswresampleimplements audio mixing and resampling routines.
- libswscaleimplements color conversion and scaling routines.
Tools
- ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
- ffplay is a minimalistic multimedia player.
- ffprobe is a simple analysis tool to inspect multimedia content.
- Additional small tools such as aviocat,ismindexandqt-faststart.
Documentation
The offline documentation is available in the doc/ directory.
The online documentation is available in the main website and in the wiki.
Examples
Coding examples are available in the doc/examples directory.
License
FFmpeg codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.
Contributing
Patches should be submitted to the ffmpeg-devel mailing list using
git format-patch or git send-email. Github pull requests should be
avoided because they are not part of our review process and will be ignored.
					Languages
				
				
								
								
									C
								
								91%
							
						
							
								
								
									Assembly
								
								7.1%
							
						
							
								
								
									Makefile
								
								1.3%
							
						
							
								
								
									C++
								
								0.2%
							
						
							
								
								
									Objective-C
								
								0.2%
							
						
							
								
								
									Other
								
								0.1%