From 12d17610645c1d1c2d5bd92cd66a604bb2c754dd Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 Nov 2019 14:47:54 +0100 Subject: 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.) --- demux/demux_mkv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demux/demux_mkv.c') diff --git a/demux/demux_mkv.c b/demux/demux_mkv.c index db1ccff13a..bd36edb784 100644 --- a/demux/demux_mkv.c +++ b/demux/demux_mkv.c @@ -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); -- cgit v1.2.3