Commit c2972a28 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit 'c7247eb7'

* commit 'c7247eb7':
  lavr: Remove unreachable code
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 1eb2c0de c7247eb7
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment