stream: remove eof getter

demux_mkv was the only thing using this, and everything else accessed it
directly. No need to keep the indirection wrapper around.

(Funny how this getter was in the initial commit of MPlayer.)
This commit is contained in:
wm4 2019-11-07 14:47:54 +01:00
parent 8a0929973d
commit 12d1761064
2 changed files with 1 additions and 6 deletions

View File

@ -2137,7 +2137,7 @@ static int demux_mkv_read_block_lacing(struct block_info *block, int type,
uint8_t t;
do {
t = stream_read_char(s);
if (stream_eof(s) || stream_tell(s) >= endpos)
if (s->eof || stream_tell(s) >= endpos)
goto error;
lace_size[i] += t;
} while (t == 0xFF);

View File

@ -188,11 +188,6 @@ inline static int stream_read_char(stream_t *s)
int stream_skip_bom(struct stream *s);
inline static int stream_eof(stream_t *s)
{
return s->eof;
}
inline static int64_t stream_tell(stream_t *s)
{
return s->pos + s->buf_cur - s->buf_end;