[MPlayer-cvslog] r31996 - trunk/stream/stream_bd.c

reimar subversion at mplayerhq.hu
Sat Aug 21 11:58:02 CEST 2010


Author: reimar
Date: Sat Aug 21 11:58:02 2010
New Revision: 31996

Log:
Avoid another unnecessary intermediate variable.

Modified:
   trunk/stream/stream_bd.c

Modified: trunk/stream/stream_bd.c
==============================================================================
--- trunk/stream/stream_bd.c	Sat Aug 21 11:55:30 2010	(r31995)
+++ trunk/stream/stream_bd.c	Sat Aug 21 11:58:02 2010	(r31996)
@@ -163,7 +163,6 @@ static int find_vuk(struct bd_priv *bd, 
         int i;
         char line[1024];
         char *vst;
-        unsigned int byte;
 
         stream_read_line(file, line, sizeof(line), 0);
         // file is built up this way:
@@ -188,9 +187,8 @@ static int find_vuk(struct bd_priv *bd, 
         if (strlen(vst) < 32)
             continue;
         for (i = 0; i < 16; i++) {
-            if (sscanf(&vst[i*2], "%2x", &byte) != 1)
+            if (sscanf(&vst[i*2], "%2"SCNx8, &bd->vuk.u8[i]) != 1)
                 break;
-            bd->vuk.u8[i] = byte;
         }
         vukfound = 1;
     }


More information about the MPlayer-cvslog mailing list