[FFmpeg-cvslog] rotozoom: Drop some unnecessary parentheses.

Diego Biurrun git at videolan.org
Thu May 12 04:55:10 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon May  9 12:23:55 2011 +0200| [e9c10459a36869b5779a4c6cd52d879f23c6b294] | committer: Diego Biurrun

rotozoom: Drop some unnecessary parentheses.

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

 tests/rotozoom.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tests/rotozoom.c b/tests/rotozoom.c
index 03e9afb..209ed02 100644
--- a/tests/rotozoom.c
+++ b/tests/rotozoom.c
@@ -135,13 +135,13 @@ static void pgmyuv_save(const char *filename, int w, int h,
     unsigned char *lum_tab, *cb_tab, *cr_tab;
 
     lum_tab = malloc(w * h);
-    cb_tab  = malloc((w * h) / 4);
-    cr_tab  = malloc((w * h) / 4);
+    cb_tab  = malloc(w * h / 4);
+    cr_tab  = malloc(w * h / 4);
 
     rgb24_to_yuv420p(lum_tab, cb_tab, cr_tab, rgb_tab, w, h);
 
     f = fopen(filename, "wb");
-    fprintf(f, "P5\n%d %d\n%d\n", w, (h * 3) / 2, 255);
+    fprintf(f, "P5\n%d %d\n%d\n", w, h * 3 / 2, 255);
     fwrite(lum_tab, 1, w * h, f);
     h2 = h / 2;
     w2 = w / 2;
@@ -264,8 +264,8 @@ static void init_demo(const char *filename)
     for (i = 0; i < 360; i++) {
         radian = 2 * i * MY_PI / 360;
         h      = 2 * FIXP + int_sin (radian);
-        h_cos[i] = (h * int_sin(radian + MY_PI / 2)) / 2 / FIXP;
-        h_sin[i] = (h * int_sin(radian)            ) / 2 / FIXP;
+        h_cos[i] = h * int_sin(radian + MY_PI / 2) / 2 / FIXP;
+        h_sin[i] = h * int_sin(radian)             / 2 / FIXP;
     }
 }
 



More information about the ffmpeg-cvslog mailing list