Mercurial > mplayer.hg
changeset 24505:f877e1d2bb0f
Avoid using demux->stream->end_pos, it rarely does any good.
author | reimar |
---|---|
date | Sat, 15 Sep 2007 11:56:24 +0000 |
parents | 75ed76f49c9c |
children | 1639f5402540 |
files | libmpdemux/demux_ty.c |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ty.c Sat Sep 15 11:44:51 2007 +0000 +++ b/libmpdemux/demux_ty.c Sat Sep 15 11:56:24 2007 +0000 @@ -380,7 +380,6 @@ { off_t filePos; tivo->readHeader = 1; - tivo->size = demux->stream->end_pos; filePos = demux->filepos; stream_seek( demux->stream, 0 ); @@ -437,8 +436,6 @@ "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;