Avoid using demux->stream->end_pos, it rarely does any good.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24525 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-09-15 11:56:24 +00:00
parent 5ea0bc8d0e
commit 40f7ef2fb5
1 changed files with 0 additions and 3 deletions

View File

@ -380,7 +380,6 @@ static int demux_ty_fill_buffer( demuxer_t *demux, demux_stream_t *dsds )
{
off_t filePos;
tivo->readHeader = 1;
tivo->size = demux->stream->end_pos;
filePos = demux->filepos;
stream_seek( demux->stream, 0 );
@ -437,8 +436,6 @@ static int demux_ty_fill_buffer( demuxer_t *demux, demux_stream_t *dsds )
"ty:Header Calc Stream Size %"PRId64"\n", tivo->size );
}
}
if ( tivo->size > demux->stream->end_pos )
tivo->size = demux->stream->end_pos;
if ( demux->stream->start_pos > 0 )
filePos = demux->stream->start_pos;