You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Merge commit '0ac8ff618c5e6d878c547a8877e714ed728950ce'
* commit '0ac8ff618c5e6d878c547a8877e714ed728950ce': avresample: Reallocate the internal buffer to the correct size Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -434,7 +434,9 @@ int ff_audio_resample(ResampleContext *c, AudioData *dst, AudioData *src) | ||||
|         int bps = av_get_bytes_per_sample(c->avr->internal_sample_fmt); | ||||
|         int i; | ||||
|  | ||||
|         ret = ff_audio_data_realloc(c->buffer, in_samples + c->padding_size); | ||||
|         ret = ff_audio_data_realloc(c->buffer, | ||||
|                                     FFMAX(in_samples, in_leftover) + | ||||
|                                     c->padding_size); | ||||
|         if (ret < 0) { | ||||
|             av_log(c->avr, AV_LOG_ERROR, "Error reallocating resampling buffer\n"); | ||||
|             return AVERROR(ENOMEM); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user