summaryrefslogtreecommitdiffstats
path: root/libavresample
diff options
context:
space:
mode:
Diffstat (limited to 'libavresample')
-rw-r--r--libavresample/resample.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavresample/resample.c b/libavresample/resample.c
index 9c447d3..0c94186 100644
--- a/libavresample/resample.c
+++ b/libavresample/resample.c
@@ -235,7 +235,6 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta,
{
ResampleContext *c;
AudioData *fifo_buf = NULL;
- int ret = 0;
if (compensation_distance < 0)
return AVERROR(EINVAL);
@@ -254,10 +253,8 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta,
} else {
c->dst_incr = c->ideal_dst_incr;
}
- return 0;
- ff_audio_data_free(&fifo_buf);
- return ret;
+ return 0;
}
static int resample(ResampleContext *c, void *dst, const void *src,
OpenPOWER on IntegriCloud