[xiph-commits] r17992 - trunk/theora/lib

tterribe at svn.xiph.org tterribe at svn.xiph.org
Fri May 20 13:57:21 PDT 2011


Author: tterribe
Date: 2011-05-20 13:57:21 -0700 (Fri, 20 May 2011)
New Revision: 17992

Modified:
   trunk/theora/lib/decode.c
Log:
Correct an operator precedence error in the visualization code.

Fixes #1751.


Modified: trunk/theora/lib/decode.c
===================================================================
--- trunk/theora/lib/decode.c	2011-05-20 20:44:34 UTC (rev 17991)
+++ trunk/theora/lib/decode.c	2011-05-20 20:57:21 UTC (rev 17992)
@@ -2705,8 +2705,8 @@
                 }break;
                 /*Plus:*/
                 case 1:{
-                  if(bi&2==0)yp-=2;
-                  if(bi&1==0)xp-=2;
+                  if((bi&2)==0)yp-=2;
+                  if((bi&1)==0)xp-=2;
                   cairo_move_to(c,xp+4.5,yp+2.5);
                   cairo_line_to(c,xp+4.5,yp+6.5);
                   cairo_move_to(c,xp+2.5,yp+4.5);



More information about the commits mailing list