changeset 24498:7d955b1de13c

Remove another variable and reorder to avoid wasting space due to alignment
author reimar
date Sat, 15 Sep 2007 10:58:06 +0000
parents 713ad2d3878d
children 1e57ce7abdbd
files libmpdemux/demux_ty.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ty.c	Sat Sep 15 10:55:30 2007 +0000
+++ b/libmpdemux/demux_ty.c	Sat Sep 15 10:58:06 2007 +0000
@@ -76,10 +76,9 @@
 
 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 @@
             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