mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-11 17:55:21 +00:00
lavr: Remove unreachable code
Bug-Id: CID 1323180
This commit is contained in:
parent
dc54c78c4d
commit
c7247eb7fe
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user