diff v210enc.c @ 10131:4f974b8d8851 libavcodec

prettyprinting cosmetics
author diego
date Sat, 05 Sep 2009 11:22:36 +0000
parents 0f1318d6a52b
children 38cfe222e1a4
line wrap: on
line diff
--- a/v210enc.c	Sat Sep 05 10:59:09 2009 +0000
+++ b/v210enc.c	Sat Sep 05 11:22:36 2009 +0000
@@ -48,7 +48,8 @@
     return 0;
 }
 
-static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data)
+static int encode_frame(AVCodecContext *avctx, unsigned char *buf,
+                        int buf_size, void *data)
 {
     const AVFrame *pic = data;
     int aligned_width = ((avctx->width + 47) / 48) * 48;
@@ -101,9 +102,9 @@
         pdst += stride;
         memset(p, 0, pdst - p);
         p = pdst;
-        y += pic->linesize[0]/2 - avctx->width;
-        u += pic->linesize[1]/2 - avctx->width/2;
-        v += pic->linesize[2]/2 - avctx->width/2;
+        y += pic->linesize[0] / 2 - avctx->width;
+        u += pic->linesize[1] / 2 - avctx->width / 2;
+        v += pic->linesize[2] / 2 - avctx->width / 2;
     }
 
     return p - buf;