1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-02 17:12:49 +02:00

Merge commit 'c7247eb7fe2b95803983e8f7c4f0e904f050ca7b'

* commit 'c7247eb7fe2b95803983e8f7c4f0e904f050ca7b':
  lavr: Remove unreachable code

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
Hendrik Leppkes 2015-09-16 11:19:36 +02:00
commit c2972a2800

View File

@ -235,7 +235,6 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta,
{ {
ResampleContext *c; ResampleContext *c;
AudioData *fifo_buf = NULL; AudioData *fifo_buf = NULL;
int ret = 0;
if (compensation_distance < 0) if (compensation_distance < 0)
return AVERROR(EINVAL); return AVERROR(EINVAL);
@ -254,10 +253,8 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta,
} else { } else {
c->dst_incr = c->ideal_dst_incr; c->dst_incr = c->ideal_dst_incr;
} }
return 0;
ff_audio_data_free(&fifo_buf); return 0;
return ret;
} }
static int resample(ResampleContext *c, void *dst, const void *src, static int resample(ResampleContext *c, void *dst, const void *src,