1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-20 06:11:10 +00:00

Use CHUNKSIZE define in a few more places

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24465 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-09-14 15:33:21 +00:00
parent 5ebf63afcd
commit 2334d91da4

View File

@ -202,7 +202,7 @@ static int ty_tmf_filetoparts( demuxer_t *demux, TiVoInfo *tivo )
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_t *demux, demux_stream_t *dsds )
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 ) );
}