diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-14 16:04:12 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-09-14 16:04:12 +0000 |
commit | 97f633a0838ed3a4fe55cf1cd73bf8eaec4c53ba (patch) | |
tree | 4520c28f466b9ce5cccfbc81a8f5c0b361e9eb2e | |
parent | 4fb393a73b3c2ef518f8401d01ec6f5a55c1a9b9 (diff) | |
download | mpv-97f633a0838ed3a4fe55cf1cd73bf8eaec4c53ba.tar.bz2 mpv-97f633a0838ed3a4fe55cf1cd73bf8eaec4c53ba.tar.xz |
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
-rw-r--r-- | libmpdemux/demux_ty.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libmpdemux/demux_ty.c b/libmpdemux/demux_ty.c index 3245e54c65..8f9a74a9ea 100644 --- a/libmpdemux/demux_ty.c +++ b/libmpdemux/demux_ty.c @@ -200,9 +200,7 @@ static int ty_tmf_filetoparts( demuxer_t *demux, TiVoInfo *tivo ) if ( isty ) { tivo->tmfparts[ parts ].fileNo = parts; - // HACK - Ignore last chunk of a Part File - // Why? I have no idea. - tivo->tmfparts[ parts ].fileSize = size - CHUNKSIZE; + tivo->tmfparts[ parts ].fileSize = size; tivo->tmfparts[ parts ].startOffset = offset + 512; tivo->tmfparts[ parts ].chunks = tivo->tmfparts[ parts ].fileSize / CHUNKSIZE; |