summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-03 15:20:14 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-03 15:20:14 +0000
commit047325d99f34e8512778f5850c69404ba9172069 (patch)
treede3f472e46c06b0bced63199e249dc3d89b3f2ee /libmpdemux
parent5ad888565f397f2de8633556717b913aebbfea88 (diff)
downloadmpv-047325d99f34e8512778f5850c69404ba9172069.tar.bz2
mpv-047325d99f34e8512778f5850c69404ba9172069.tar.xz
don't read past the end of the selected track
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15913 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/stream_vcd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/stream_vcd.c b/libmpdemux/stream_vcd.c
index b7ea156f49..ed4cd84834 100644
--- a/libmpdemux/stream_vcd.c
+++ b/libmpdemux/stream_vcd.c
@@ -53,6 +53,8 @@ static struct m_struct_st stream_opts = {
};
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);
}