diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-01 19:08:08 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-28 01:49:19 +0400 |
commit | 1d86aa8b0f491f06e848026c7704daa39a54f523 (patch) | |
tree | d9c78bcce142f8b2d5845bb54721b8589a2e038f /libavresample/utils.c | |
parent | d2f9f8e094d9e699dfe31ee8006830946567484c (diff) |
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.
Diffstat (limited to 'libavresample/utils.c')
-rw-r--r-- | libavresample/utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |