avcodec/vp9_raw_reorder_bsf: Check for existence of data before reading it
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		
							parent
							
								
									55e509b094
								
							
						
					
					
						commit
						ab25b6aee6
					
				| @ -292,6 +292,11 @@ static int vp9_raw_reorder_filter(AVBSFContext *bsf, AVPacket *out) | |||||||
|             return err; |             return err; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |         if (!in->size) { | ||||||
|  |             av_packet_free(&in); | ||||||
|  |             return AVERROR_INVALIDDATA; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         if ((in->data[in->size - 1] & 0xe0) == 0xc0) { |         if ((in->data[in->size - 1] & 0xe0) == 0xc0) { | ||||||
|             av_log(bsf, AV_LOG_ERROR, "Input in superframes is not " |             av_log(bsf, AV_LOG_ERROR, "Input in superframes is not " | ||||||
|                    "supported.\n"); |                    "supported.\n"); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user