]> git.sesse.net Git - ffmpeg/blobdiff - libavresample/resample.c
Merge commit '74942685cb457c01937686892878403a409baf27'
[ffmpeg] / libavresample / resample.c
index 3e9b0db562338e812a20679f2158b2b7eab1bc74..651670d6f8ae600eceee89ac4bcdf7b56b341a68 100644 (file)
@@ -234,8 +234,6 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta,
                                 int compensation_distance)
 {
     ResampleContext *c;
-    AudioData *fifo_buf = NULL;
-    int ret = 0;
 
     if (compensation_distance < 0)
         return AVERROR(EINVAL);
@@ -254,10 +252,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,