Mercurial > mplayer.hg
comparison libmpdemux/demux_ty.c @ 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 |
comparison
equal
deleted
inserted
replaced
24446:c9870762ddb5 | 24447:c6253f3b5f47 |
---|---|
198 name, sizestr, size, isty ); | 198 name, sizestr, size, isty ); |
199 | 199 |
200 if ( isty ) | 200 if ( isty ) |
201 { | 201 { |
202 tivo->tmfparts[ parts ].fileNo = parts; | 202 tivo->tmfparts[ parts ].fileNo = parts; |
203 // HACK - Ignore last chunk of a Part File | 203 tivo->tmfparts[ parts ].fileSize = size; |
204 // Why? I have no idea. | |
205 tivo->tmfparts[ parts ].fileSize = size - CHUNKSIZE; | |
206 tivo->tmfparts[ parts ].startOffset = offset + 512; | 204 tivo->tmfparts[ parts ].startOffset = offset + 512; |
207 tivo->tmfparts[ parts ].chunks = | 205 tivo->tmfparts[ parts ].chunks = |
208 tivo->tmfparts[ parts ].fileSize / CHUNKSIZE; | 206 tivo->tmfparts[ parts ].fileSize / CHUNKSIZE; |
209 mp_msg | 207 mp_msg |
210 ( | 208 ( |