1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-26 02:05:31 +00:00

Do not ignore last chunk in .tmf files, it will cause part of the file to be

missing during playback.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24467 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-09-14 16:04:12 +00:00
parent 4fb393a73b
commit 97f633a083

View File

@ -200,9 +200,7 @@ static int ty_tmf_filetoparts( demuxer_t *demux, TiVoInfo *tivo )
if ( isty ) if ( isty )
{ {
tivo->tmfparts[ parts ].fileNo = parts; tivo->tmfparts[ parts ].fileNo = parts;
// HACK - Ignore last chunk of a Part File tivo->tmfparts[ parts ].fileSize = size;
// Why? I have no idea.
tivo->tmfparts[ parts ].fileSize = size - CHUNKSIZE;
tivo->tmfparts[ parts ].startOffset = offset + 512; tivo->tmfparts[ parts ].startOffset = offset + 512;
tivo->tmfparts[ parts ].chunks = tivo->tmfparts[ parts ].chunks =
tivo->tmfparts[ parts ].fileSize / CHUNKSIZE; tivo->tmfparts[ parts ].fileSize / CHUNKSIZE;