You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Only check frame size if the header is valid.
Originally committed as revision 21439 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		| @@ -1237,7 +1237,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size, | ||||
|     err = parse_frame_header(s); | ||||
|  | ||||
|     /* check that reported frame size fits in input buffer */ | ||||
|     if(s->frame_size > buf_size) { | ||||
|     if(!err && s->frame_size > buf_size) { | ||||
|         av_log(avctx, AV_LOG_ERROR, "incomplete frame\n"); | ||||
|         err = AAC_AC3_PARSE_ERROR_FRAME_SIZE; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user