changeset 24445:e3b5a74a76f5

Use CHUNKSIZE define in a few more places
author reimar
date Fri, 14 Sep 2007 15:33:21 +0000
parents 7c07a4b2aab0
children c9870762ddb5
files libmpdemux/demux_ty.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ty.c	Fri Sep 14 15:28:47 2007 +0000
+++ b/libmpdemux/demux_ty.c	Fri Sep 14 15:33:21 2007 +0000
@@ -202,7 +202,7 @@
          tivo->tmfparts[ parts ].fileNo = parts;
 			// HACK - Ignore last chunk of a Part File
 			// Why?  I have no idea.
-         tivo->tmfparts[ parts ].fileSize = size - 0x20000;
+         tivo->tmfparts[ parts ].fileSize = size - CHUNKSIZE;
          tivo->tmfparts[ parts ].startOffset = offset + 512;
          tivo->tmfparts[ parts ].chunks = 
             ( tivo->tmfparts[ parts ].fileSize / CHUNKSIZE );
@@ -688,7 +688,7 @@
                   numberParts = tivo->tmf_totalparts;
                   offset = numberParts * TIVO_PART_LENGTH;
                   readSize = tmf_load_chunk( demux, tivo, chunk, CHUNKSIZE, 
-                     ( numberParts * ( TIVO_PART_LENGTH - 0x20000 ) / 
+                     ( numberParts * ( TIVO_PART_LENGTH - CHUNKSIZE ) / 
                      CHUNKSIZE ) );
                }