Unified · Split
| @@ -235,7 +235,6 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta, · 234 unmodified lines | |||
| 235 | { | 235 | { |
| 236 | ResampleContext *c; | 236 | ResampleContext *c; |
| 237 | AudioData *fifo_buf = NULL; | 237 | AudioData *fifo_buf = NULL; |
| 238 | int ret = 0; | ||
| 239 | 238 | ||
| 240 | if (compensation_distance < 0) | 239 | if (compensation_distance < 0) |
| 241 | return AVERROR(EINVAL); | 240 | return AVERROR(EINVAL); |
| @@ -254,10 +253,8 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta, · 12 unmodified lines | |||
| 254 | } else { | 253 | } else { |
| 255 | c->dst_incr = c->ideal_dst_incr; | 254 | c->dst_incr = c->ideal_dst_incr; |
| 256 | } | 255 | } |
| 257 | return 0; | ||
| 258 | 256 | ||
| 259 | ff_audio_data_free(&fifo_buf); | 257 | return 0; |
| 260 | return ret; | ||
| 261 | } | 258 | } |
| 262 | 259 | ||
| 263 | static int resample(ResampleContext *c, void *dst, const void *src, | 260 | static int resample(ResampleContext *c, void *dst, const void *src, |