[MPlayer-cvslog] r23648 - trunk/libmpdemux/demux_audio.c

reimar subversion at mplayerhq.hu
Sun Jun 24 15:21:50 CEST 2007


Author: reimar
Date: Sun Jun 24 15:21:50 2007
New Revision: 23648

Log:
Get rid of: useless variable, useless cast and void * arithmetic


Modified:
   trunk/libmpdemux/demux_audio.c

Modified: trunk/libmpdemux/demux_audio.c
==============================================================================
--- trunk/libmpdemux/demux_audio.c	(original)
+++ trunk/libmpdemux/demux_audio.c	Sun Jun 24 15:21:50 2007
@@ -212,29 +212,26 @@ get_flac_metadata (demuxer_t* demuxer)
 
       uint32_t length, comment_list_len;
       char comments[blk_len];
-      void *ptr = comments;
+      uint8_t *ptr = comments;
       char *comment;
       int cn;
       char c;
 
       if (stream_read (s, comments, blk_len) == blk_len)
       {
-        uint8_t *p = ptr;
-        length = AV_RL32(p);
+        length = AV_RL32(ptr);
         ptr += 4 + length;
 
-        p = ptr;
-        comment_list_len = AV_RL32(p);
+        comment_list_len = AV_RL32(ptr);
         ptr += 4;
 
         cn = 0;
         for (; cn < comment_list_len; cn++)
         {
-          p = ptr;
-          length = AV_RL32(p);
+          length = AV_RL32(ptr);
           ptr += 4;
 
-          comment = (char *) ptr;
+          comment = ptr;
           c = comment[length];
           comment[length] = 0;
 



More information about the MPlayer-cvslog mailing list