summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recordmydesktop/src/rmd_cache.c8
-rw-r--r--recordmydesktop/src/rmd_get_frame.c2
-rw-r--r--recordmydesktop/src/rmd_rescue.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/recordmydesktop/src/rmd_cache.c b/recordmydesktop/src/rmd_cache.c
index bb3c765..2c4e9a2 100644
--- a/recordmydesktop/src/rmd_cache.c
+++ b/recordmydesktop/src/rmd_cache.c
@@ -137,10 +137,10 @@ void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_dat
//we set the buffer only since there's
//no need to initialize the encoder from now.
- width = ((pdata->brwin.rrect.width + 15) >>4)<<4;
- height = ((pdata->brwin.rrect.height + 15) >>4)<<4;
- offset_x = ((width-pdata->brwin.rrect.width)/2)&~1;
- offset_y = ((height-pdata->brwin.rrect.height)/2)&~1;
+ width = ((pdata->brwin.rrect.width + 15) >> 4) << 4;
+ height = ((pdata->brwin.rrect.height + 15) >> 4) << 4;
+ offset_x = ((width - pdata->brwin.rrect.width) / 2) & ~1;
+ offset_y = ((height - pdata->brwin.rrect.height) / 2) & ~1;
(pdata)->enc_data = enc_data_t;
diff --git a/recordmydesktop/src/rmd_get_frame.c b/recordmydesktop/src/rmd_get_frame.c
index 6625847..055536d 100644
--- a/recordmydesktop/src/rmd_get_frame.c
+++ b/recordmydesktop/src/rmd_get_frame.c
@@ -282,7 +282,7 @@ void *rmdGetFrame(ProgData *pdata) {
img_sel = d_buff = pdata->args.full_shots;
- if ((init_img1 = rmdFirstFrame(pdata,&image,&shminfo) != 0)) {
+ if ((init_img1 = rmdFirstFrame(pdata, &image, &shminfo) != 0)) {
if (pdata->args.encOnTheFly) {
if (remove(pdata->args.filename)) {
perror("Error while removing file:\n");
diff --git a/recordmydesktop/src/rmd_rescue.c b/recordmydesktop/src/rmd_rescue.c
index ec3130e..06d58fa 100644
--- a/recordmydesktop/src/rmd_rescue.c
+++ b/recordmydesktop/src/rmd_rescue.c
@@ -75,10 +75,10 @@ int rmdRescue(const char *path) {
if (rmdReadSpecsFile(&pdata))
return 1;
- width=((pdata.brwin.rrect.width + 15) >>4)<<4;
- height=((pdata.brwin.rrect.height + 15) >>4)<<4;
- offset_x=((width-pdata.brwin.rrect.width)/2)&~1;
- offset_y=((height-pdata.brwin.rrect.height)/2)&~1;
+ width = ((pdata.brwin.rrect.width + 15) >> 4) << 4;
+ height = ((pdata.brwin.rrect.height + 15) >> 4) << 4;
+ offset_x = ((width - pdata.brwin.rrect.width) / 2) & ~1;
+ offset_y = ((height - pdata.brwin.rrect.height) / 2) & ~1;
enc_data.yuv.y=(unsigned char *)malloc(height*width);
enc_data.yuv.u=(unsigned char *)malloc(height*width/4);
© All Rights Reserved