[MPlayer-cvslog] r24518 - trunk/libmpdemux/demux_ty.c

reimar subversion at mplayerhq.hu
Sat Sep 15 12:58:07 CEST 2007


Author: reimar
Date: Sat Sep 15 12:58:06 2007
New Revision: 24518

Log:
Remove another variable and reorder to avoid wasting space due to alignment


Modified:
   trunk/libmpdemux/demux_ty.c

Modified: trunk/libmpdemux/demux_ty.c
==============================================================================
--- trunk/libmpdemux/demux_ty.c	(original)
+++ trunk/libmpdemux/demux_ty.c	Sat Sep 15 12:58:06 2007
@@ -76,10 +76,9 @@ extern int sub_justify;
 
 typedef struct stmf_fileParts
 {
-   int   fileNo;
+   off_t startOffset;
    off_t fileSize;
    int   chunks;
-   off_t startOffset;
 } tmf_fileParts;
 
 #define MAX_TMF_PARTS 16
@@ -172,16 +171,14 @@ static int ty_tmf_filetoparts( demuxer_t
             mp_msg( MSGT_DEMUX, MSGL_ERR, "ty:tmf too big\n" );
             break;
          }
-         tivo->tmfparts[ parts ].fileNo = parts;
          tivo->tmfparts[ parts ].fileSize = size;
          tivo->tmfparts[ parts ].startOffset = offset + 512;
          tivo->tmfparts[ parts ].chunks = size / CHUNKSIZE;
          mp_msg
          (
             MSGT_DEMUX, MSGL_DBG3,
-           "tmf_filetoparts(): index %d, file %d, chunks %d\n",
+           "tmf_filetoparts(): index %d, chunks %d\n",
             parts,
-            tivo->tmfparts[ parts ].fileNo,
             tivo->tmfparts[ parts ].chunks
          );
          mp_msg



More information about the MPlayer-cvslog mailing list