shithub: libvpx

Download patch

ref: 56cc37c64295715f632c9f169f106bf5ce9420b6
parent: 87bf5203aff73b27164b871a97a0b36b15f39e1e
author: Alex Converse <aconverse@google.com>
date: Thu Mar 5 07:09:03 EST 2015

Fix misleading indentation.

Change-Id: Ic82b039a3d42f9aa01b85a3a69facfaa84b43a53

--- a/vp9/encoder/vp9_ethread.c
+++ b/vp9/encoder/vp9_ethread.c
@@ -79,26 +79,26 @@
       winterface->init(worker);
 
       if (i < num_workers - 1) {
-      thread_data->cpi = cpi;
+        thread_data->cpi = cpi;
 
-      // Allocate thread data.
-      CHECK_MEM_ERROR(cm, thread_data->td,
-                      vpx_memalign(32, sizeof(*thread_data->td)));
-      vp9_zero(*thread_data->td);
+        // Allocate thread data.
+        CHECK_MEM_ERROR(cm, thread_data->td,
+                        vpx_memalign(32, sizeof(*thread_data->td)));
+        vp9_zero(*thread_data->td);
 
-      // Set up pc_tree.
-      thread_data->td->leaf_tree = NULL;
-      thread_data->td->pc_tree = NULL;
-      vp9_setup_pc_tree(cm, thread_data->td);
+        // Set up pc_tree.
+        thread_data->td->leaf_tree = NULL;
+        thread_data->td->pc_tree = NULL;
+        vp9_setup_pc_tree(cm, thread_data->td);
 
-      // Allocate frame counters in thread data.
-      CHECK_MEM_ERROR(cm, thread_data->td->counts,
-                      vpx_calloc(1, sizeof(*thread_data->td->counts)));
+        // Allocate frame counters in thread data.
+        CHECK_MEM_ERROR(cm, thread_data->td->counts,
+                        vpx_calloc(1, sizeof(*thread_data->td->counts)));
 
-      // Create threads
-      if (!winterface->reset(worker))
-        vpx_internal_error(&cm->error, VPX_CODEC_ERROR,
-                           "Tile encoder thread creation failed");
+        // Create threads
+        if (!winterface->reset(worker))
+          vpx_internal_error(&cm->error, VPX_CODEC_ERROR,
+                             "Tile encoder thread creation failed");
       } else {
         // Main thread acts as a worker and uses the thread data in cpi.
         thread_data->cpi = cpi;