aboutsummaryrefslogtreecommitdiffstats
path: root/libavresample/resample.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-09-10 17:05:55 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-09-13 17:34:45 +0200
commitc7247eb7fe2b95803983e8f7c4f0e904f050ca7b (patch)
tree076c9eca3b2f93e01d1cd93ac727dde35c296a76 /libavresample/resample.c
parentdc54c78c4d56cdf5549f35ccff2fd66e7ffa0af2 (diff)
downloadffmpeg-c7247eb7fe2b95803983e8f7c4f0e904f050ca7b.tar.gz
lavr: Remove unreachable code
Bug-Id: CID 1323180
Diffstat (limited to 'libavresample/resample.c')
-rw-r--r--libavresample/resample.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavresample/resample.c b/libavresample/resample.c
index 9c447d3fed..0c941862d6 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,