[MPlayer-cvslog] r32599 - trunk/sub/sub_cc.c

reimar subversion at mplayerhq.hu
Sun Nov 7 19:13:22 CET 2010


Author: reimar
Date: Sun Nov  7 19:13:22 2010
New Revision: 32599

Log:
Avoid unnecessary ().

Modified:
   trunk/sub/sub_cc.c

Modified: trunk/sub/sub_cc.c
==============================================================================
--- trunk/sub/sub_cc.c	Sun Nov  7 13:47:40 2010	(r32598)
+++ trunk/sub/sub_cc.c	Sun Nov  7 19:13:22 2010	(r32599)
@@ -100,7 +100,7 @@ static void scroll_buffer(subtitle* buf)
 	{
 		free(buf->text[0]);
 
-		for(i = 0; i < (buf->lines - 1); i++) buf->text[i] = buf->text[i+1];
+		for(i = 0; i < buf->lines - 1; i++) buf->text[i] = buf->text[i+1];
 
 		buf->text[buf->lines-1] = NULL;
 		buf->lines--;
@@ -286,7 +286,7 @@ static void subcc_decode(unsigned char *
   while (curbytes < inputlength) {
     int skip = 2;
 
-    cc_code = *(current);
+    cc_code = current[0];
 
     if (inputlength - curbytes < 2) {
 #ifdef LOG_DEBUG
@@ -295,8 +295,8 @@ static void subcc_decode(unsigned char *
       break;
     }
 
-    data1 = *(current+1);
-    data2 = *(current + 2);
+    data1 = current[1];
+    data2 = current[2];
     current++; curbytes++;
 
     switch (cc_code) {


More information about the MPlayer-cvslog mailing list