Mercurial > mplayer.hg
changeset 15912:25feca1387e7
don't read past the end of the selected track
author | nicodvb |
---|---|
date | Sun, 03 Jul 2005 15:20:14 +0000 |
parents | 3b102f761e9a |
children | 06baf147a638 |
files | libmpdemux/stream_vcd.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/stream_vcd.c Sun Jul 03 14:59:13 2005 +0000 +++ b/libmpdemux/stream_vcd.c Sun Jul 03 15:20:14 2005 +0000 @@ -53,6 +53,8 @@ }; static int fill_buffer(stream_t *s, char* buffer, int max_len){ + if(s->pos > s->end_pos) /// don't past end of current track + return 0; return vcd_read(s->priv,buffer); }