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