[vlc-commits] sdp: fix multiple consecutive reads

Rémi Denis-Courmont git at videolan.org
Sun Dec 10 14:41:51 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 10 15:41:36 2017 +0200| [7f981398befbf10eae0a99a63031219ced8d6dcd] | committer: Rémi Denis-Courmont

sdp: fix multiple consecutive reads

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7f981398befbf10eae0a99a63031219ced8d6dcd
---

 modules/access/sdp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/sdp.c b/modules/access/sdp.c
index a36c618e2e..4442cfefed 100644
--- a/modules/access/sdp.c
+++ b/modules/access/sdp.c
@@ -83,6 +83,7 @@ static ssize_t Read (stream_t *access, void *buf, size_t len)
     if (len > sys->length - sys->offset)
         len = sys->length - sys->offset;
     memcpy (buf, sys->data + sys->offset, len);
+    sys->offset += len;
     return len;
 }
 



More information about the vlc-commits mailing list