mirror of https://github.com/mpv-player/mpv
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:
parent
5ea0bc8d0e
commit
40f7ef2fb5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue