From ae47428ca9432e3955b324b60ce8665f0990269a Mon Sep 17 00:00:00 2001
From: Vito Caputo <vcaputo@pengaru.com>
Date: Sat, 11 Jul 2020 08:36:26 -0700
Subject: cache: more formatting cleanups

nothing functional changed
---
 recordmydesktop/src/rmd_cache.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

(limited to 'recordmydesktop')

diff --git a/recordmydesktop/src/rmd_cache.c b/recordmydesktop/src/rmd_cache.c
index 2c4e9a2..2d7d8d5 100644
--- a/recordmydesktop/src/rmd_cache.c
+++ b/recordmydesktop/src/rmd_cache.c
@@ -132,8 +132,8 @@ int rmdPurgeCache(CacheData *cache_data_t, int sound) {
 }
 
 void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_data_t) {
-	int width, height, offset_x, offset_y, pid;
-	char pidbuf[8];
+	int	width, height, offset_x, offset_y, pid;
+	char	pidbuf[8];
 
 	//we set the buffer only since there's
 	//no need to initialize the encoder from now.
@@ -144,16 +144,16 @@ void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_dat
 
 	(pdata)->enc_data = enc_data_t;
 
-	enc_data_t->yuv.y = (unsigned char *)malloc(height*width);
-	enc_data_t->yuv.u = (unsigned char *)malloc(height*width/4);
-	enc_data_t->yuv.v = (unsigned char *)malloc(height*width/4);
+	enc_data_t->yuv.y = (unsigned char *)malloc(height * width);
+	enc_data_t->yuv.u = (unsigned char *)malloc(height * width / 4);
+	enc_data_t->yuv.v = (unsigned char *)malloc(height * width / 4);
 	enc_data_t->yuv.y_width = width;
 	enc_data_t->yuv.y_height = height;
 	enc_data_t->yuv.y_stride = width;
 
-	enc_data_t->yuv.uv_width = width/2;
-	enc_data_t->yuv.uv_height = height/2;
-	enc_data_t->yuv.uv_stride = width/2;
+	enc_data_t->yuv.uv_width = width / 2;
+	enc_data_t->yuv.uv_height = height / 2;
+	enc_data_t->yuv.uv_stride = width / 2;
 	enc_data_t->x_offset = offset_x;
 	enc_data_t->y_offset = offset_y;
 
@@ -220,5 +220,3 @@ void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_dat
 		exit(13);
 	}
 }
-
-
-- 
cgit v1.2.3