mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 20:42:49 +08:00 
			
		
		
		
	lavf/brstm: allow larger block sizes
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		 Rodger Combs
					Rodger Combs
				
			
				
					committed by
					
						 Michael Niedermayer
						Michael Niedermayer
					
				
			
			
				
	
			
			
			 Michael Niedermayer
						Michael Niedermayer
					
				
			
						parent
						
							d4c9eced98
						
					
				
				
					commit
					db426031dd
				
			| @@ -223,7 +223,7 @@ static int read_header(AVFormatContext *s) | ||||
|     } | ||||
|  | ||||
|     b->block_size = read32(s); | ||||
|     if (b->block_size > UINT16_MAX / st->codec->channels) | ||||
|     if (b->block_size > UINT32_MAX / st->codec->channels) | ||||
|         return AVERROR_INVALIDDATA; | ||||
|     b->block_size *= st->codec->channels; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user