You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/mlpenc: remove not needed buf_size checks
This commit is contained in:
		| @@ -1186,16 +1186,11 @@ static int write_access_unit(MLPEncodeContext *ctx, uint8_t *buf, | |||||||
|     unsigned int substr; |     unsigned int substr; | ||||||
|     int total_length; |     int total_length; | ||||||
|  |  | ||||||
|     if (buf_size < 4) |  | ||||||
|         return AVERROR(EINVAL); |  | ||||||
|  |  | ||||||
|     /* Frame header will be written at the end. */ |     /* Frame header will be written at the end. */ | ||||||
|     buf      += 4; |     buf      += 4; | ||||||
|     buf_size -= 4; |     buf_size -= 4; | ||||||
|  |  | ||||||
|     if (restart_frame) { |     if (restart_frame) { | ||||||
|         if (buf_size < 28) |  | ||||||
|             return AVERROR(EINVAL); |  | ||||||
|         write_major_sync(ctx, buf, buf_size); |         write_major_sync(ctx, buf, buf_size); | ||||||
|         buf      += 28; |         buf      += 28; | ||||||
|         buf_size -= 28; |         buf_size -= 28; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user