]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_extrastereo.c
lavfi/af_aresample: remove looping on request_frame().
[ffmpeg] / libavfilter / af_extrastereo.c
index b4f8c85c38cb6faf56ce75f4f37512d1bdace9cf..9d23e88646de78b2b39e416e5be4f9a072f517d3 100644 (file)
@@ -64,14 +64,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     ExtraStereoContext *s = ctx->priv;
     const float *src = (const float *)in->data[0];
     const float mult = s->mult;
-    AVFrame *out = NULL;
+    AVFrame *out;
     float *dst;
     int n;
 
     if (av_frame_is_writable(in)) {
         out = in;
     } else {
-        AVFrame *out = ff_get_audio_buffer(inlink, in->nb_samples);
+        out = ff_get_audio_buffer(inlink, in->nb_samples);
         if (!out) {
             av_frame_free(&in);
             return AVERROR(ENOMEM);