Mercurial > mplayer.hg
changeset 24447:c6253f3b5f47
Do not ignore last chunk in .tmf files, it will cause part of the file to be
missing during playback.
author | reimar |
---|---|
date | Fri, 14 Sep 2007 16:04:12 +0000 |
parents | c9870762ddb5 |
children | 044d3ec97bf7 |
files | libmpdemux/demux_ty.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ty.c Fri Sep 14 15:52:46 2007 +0000 +++ b/libmpdemux/demux_ty.c Fri Sep 14 16:04:12 2007 +0000 @@ -200,9 +200,7 @@ 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;