changeset 32325:0ba9d1a85eb4

Reindent.
author reimar
date Wed, 29 Sep 2010 19:06:03 +0000
parents faf951bbfdfe
children 4189a8951568
files spudec.c
diffstat 1 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/spudec.c	Wed Sep 29 19:05:13 2010 +0000
+++ b/spudec.c	Wed Sep 29 19:06:03 2010 +0000
@@ -1368,20 +1368,20 @@
   packet->start_row = y;
   packet->data_len = 2 * stride * h;
   if (packet->data_len) { // size 0 is a special "clear" packet
-  packet->packet = malloc(packet->data_len);
-  img  = packet->packet;
-  aimg = packet->packet + stride * h;
-  for (i = 0; i < 256; i++) {
-      uint32_t pixel = pal[i];
-      int alpha = pixel >> 24;
-      int gray = (((pixel & 0x000000ff) >>  0) +
-                  ((pixel & 0x0000ff00) >>  7) +
-                  ((pixel & 0x00ff0000) >> 16)) >> 2;
-      gray = FFMIN(gray, alpha);
-      g8a8_pal[i] = (-alpha << 8) | gray;
-  }
-  pal2gray_alpha(g8a8_pal, pal_img, pal_stride,
-                 img, aimg, stride, w, h);
+      packet->packet = malloc(packet->data_len);
+      img  = packet->packet;
+      aimg = packet->packet + stride * h;
+      for (i = 0; i < 256; i++) {
+          uint32_t pixel = pal[i];
+          int alpha = pixel >> 24;
+          int gray = (((pixel & 0x000000ff) >>  0) +
+                      ((pixel & 0x0000ff00) >>  7) +
+                      ((pixel & 0x00ff0000) >> 16)) >> 2;
+          gray = FFMIN(gray, alpha);
+          g8a8_pal[i] = (-alpha << 8) | gray;
+      }
+      pal2gray_alpha(g8a8_pal, pal_img, pal_stride,
+                     img, aimg, stride, w, h);
   }
   packet->start_pts = 0;
   packet->end_pts = 0x7fffffff;