aasc: cosmetics, reformat
authorAnton Khirnov <anton@khirnov.net>
Wed, 14 Nov 2012 08:09:43 +0000 (09:09 +0100)
committerAnton Khirnov <anton@khirnov.net>
Sun, 23 Dec 2012 10:17:53 +0000 (11:17 +0100)
libavcodec/aasc.c

index cd1df36..47d25d0 100644 (file)
@@ -54,8 +54,8 @@ static int aasc_decode_frame(AVCodecContext *avctx,
                               AVPacket *avpkt)
 {
     const uint8_t *buf = avpkt->data;
-    int buf_size = avpkt->size;
-    AascContext *s = avctx->priv_data;
+    int buf_size       = avpkt->size;
+    AascContext *s     = avctx->priv_data;
     int compr, i, stride;
 
     s->frame.reference = 1;
@@ -65,14 +65,14 @@ static int aasc_decode_frame(AVCodecContext *avctx,
         return -1;
     }
 
-    compr = AV_RL32(buf);
-    buf += 4;
+    compr     = AV_RL32(buf);
+    buf      += 4;
     buf_size -= 4;
-    switch(compr){
+    switch (compr) {
     case 0:
         stride = (avctx->width * 3 + 3) & ~3;
-        for(i = avctx->height - 1; i >= 0; i--){
-            memcpy(s->frame.data[0] + i*s->frame.linesize[0], buf, avctx->width*3);
+        for (i = avctx->height - 1; i >= 0; i--) {
+            memcpy(s->frame.data[0] + i * s->frame.linesize[0], buf, avctx->width * 3);
             buf += stride;
         }
         break;