]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_extrastereo.c
avformat/dashenc: Persistent HTTP connections supported as an option
[ffmpeg] / libavfilter / af_extrastereo.c
index a746006f7107feb1712b56a6f8c98ff29bba8e8e..b07c006f2c5ce5b1cca4ea3818a45554e0aada14 100644 (file)
@@ -90,9 +90,12 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
         right   = average + mult * (right - average);
 
         if (s->clip) {
-            dst[n * 2    ] = av_clipf(left,  -1, 1);
-            dst[n * 2 + 1] = av_clipf(right, -1, 1);
+            left  = av_clipf(left,  -1, 1);
+            right = av_clipf(right, -1, 1);
         }
+
+        dst[n * 2    ] = left;
+        dst[n * 2 + 1] = right;
     }
 
     if (out != in)