[FFmpeg-cvslog] lavr: Remove unreachable code
Vittorio Giovara
git at videolan.org
Wed Sep 16 11:19:46 CEST 2015
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Thu Sep 10 17:05:55 2015 +0200| [c7247eb7fe2b95803983e8f7c4f0e904f050ca7b] | committer: Vittorio Giovara
lavr: Remove unreachable code
Bug-Id: CID 1323180
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c7247eb7fe2b95803983e8f7c4f0e904f050ca7b
---
libavresample/resample.c | 5 +----
1 file changed, 1 insertion(+), 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,
More information about the ffmpeg-cvslog
mailing list