[FFmpeg-cvslog] aasc: cosmetics, reformat

Anton Khirnov git at videolan.org
Sun Dec 23 15:10:44 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Nov 14 09:09:43 2012 +0100| [c64cf2a37bfc909cb3fe9af9699092e105c705fa] | committer: Anton Khirnov

aasc: cosmetics, reformat

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c64cf2a37bfc909cb3fe9af9699092e105c705fa
---

 libavcodec/aasc.c |   14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/libavcodec/aasc.c b/libavcodec/aasc.c
index cd1df36..47d25d0 100644
--- a/libavcodec/aasc.c
+++ b/libavcodec/aasc.c
@@ -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;



More information about the ffmpeg-cvslog mailing list