[vlc-commits] scaletempo: re-indent (cf. previous commit)

Thomas Guillem git at videolan.org
Tue Feb 19 17:56:00 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb 19 15:24:05 2019 +0100| [126dfaf8491a696ace8ba7b0a85dc221518373c3] | committer: Thomas Guillem

scaletempo: re-indent (cf. previous commit)

No functional changes.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=126dfaf8491a696ace8ba7b0a85dc221518373c3
---

 modules/audio_filter/scaletempo.c | 38 ++++++++++++++++++--------------------
 1 file changed, 18 insertions(+), 20 deletions(-)

diff --git a/modules/audio_filter/scaletempo.c b/modules/audio_filter/scaletempo.c
index f8d1adbc2d..dbedb1573c 100644
--- a/modules/audio_filter/scaletempo.c
+++ b/modules/audio_filter/scaletempo.c
@@ -243,28 +243,26 @@ static size_t transform_buffer( filter_t *p_filter,
     filter_sys_t *p = p_filter->p_sys;
     unsigned bytes_out, bytes_off = 0;
 
-    {
-        // output stride
-        if( p->output_overlap ) {
-            if( p->best_overlap_offset ) {
-                bytes_off = p->best_overlap_offset( p_filter );
-            }
-            p->output_overlap( p_filter, pout, bytes_off );
+    // output stride
+    if( p->output_overlap ) {
+        if( p->best_overlap_offset ) {
+            bytes_off = p->best_overlap_offset( p_filter );
         }
-        memcpy( pout + p->bytes_overlap,
-                p->buf_queue + bytes_off + p->bytes_overlap,
-                p->bytes_standing );
-        bytes_out = p->bytes_stride;
-
-        // input stride
-        memcpy( p->buf_overlap,
-                p->buf_queue + bytes_off + p->bytes_stride,
-                p->bytes_overlap );
-        double frames_to_slide = p->frames_stride_scaled + p->frames_stride_error;
-        unsigned frames_to_stride_whole = (int)frames_to_slide;
-        p->bytes_to_slide       = frames_to_stride_whole * p->bytes_per_frame;
-        p->frames_stride_error  = frames_to_slide - frames_to_stride_whole;
+        p->output_overlap( p_filter, pout, bytes_off );
     }
+    memcpy( pout + p->bytes_overlap,
+            p->buf_queue + bytes_off + p->bytes_overlap,
+            p->bytes_standing );
+    bytes_out = p->bytes_stride;
+
+    // input stride
+    memcpy( p->buf_overlap,
+            p->buf_queue + bytes_off + p->bytes_stride,
+            p->bytes_overlap );
+    double frames_to_slide = p->frames_stride_scaled + p->frames_stride_error;
+    unsigned frames_to_stride_whole = (int)frames_to_slide;
+    p->bytes_to_slide       = frames_to_stride_whole * p->bytes_per_frame;
+    p->frames_stride_error  = frames_to_slide - frames_to_stride_whole;
 
     return bytes_out;
 }



More information about the vlc-commits mailing list