[MPlayer-cvslog] r24465 - trunk/libmpdemux/demux_ty.c
    reimar 
    subversion at mplayerhq.hu
       
    Fri Sep 14 17:33:22 CEST 2007
    
    
  
Author: reimar
Date: Fri Sep 14 17:33:21 2007
New Revision: 24465
Log:
Use CHUNKSIZE define in a few more places
Modified:
   trunk/libmpdemux/demux_ty.c
Modified: trunk/libmpdemux/demux_ty.c
==============================================================================
--- trunk/libmpdemux/demux_ty.c	(original)
+++ trunk/libmpdemux/demux_ty.c	Fri Sep 14 17:33:21 2007
@@ -202,7 +202,7 @@ static int ty_tmf_filetoparts( demuxer_t
          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 @@ static int demux_ty_fill_buffer( demuxer
                   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 ) );
                }
 
    
    
More information about the MPlayer-cvslog
mailing list