From 1d86aa8b0f491f06e848026c7704daa39a54f523 Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Thu, 1 Nov 2012 11:08:08 -0400 Subject: lavr: do not pass consumed samples as a parameter to ff_audio_resample() Since the resampler handles buffering of unconsumed samples internally, the caller does not need this information. --- libavresample/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavresample/utils.c') diff --git a/libavresample/utils.c b/libavresample/utils.c index 20b5fb1eea..3fdeeb8cc0 100644 --- a/libavresample/utils.c +++ b/libavresample/utils.c @@ -342,7 +342,6 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, if (avr->resample_needed) { AudioData *resample_out; - int consumed = 0; if (!avr->out_convert_needed && direct_output && out_samples > 0) resample_out = &output_buffer; @@ -351,7 +350,7 @@ int attribute_align_arg avresample_convert(AVAudioResampleContext *avr, av_dlog(avr, "[resample] %s to %s\n", current_buffer->name, resample_out->name); ret = ff_audio_resample(avr->resample, resample_out, - current_buffer, &consumed); + current_buffer); if (ret < 0) return ret; -- cgit v1.2.3