[vlc-devel] [PATCH] stream_filter/decomp.c: fix Read function
Frédéric Yhuel
fyhuel at viotech.net
Wed Dec 28 11:14:18 CET 2011
---
modules/stream_filter/decomp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/stream_filter/decomp.c b/modules/stream_filter/decomp.c
index 7aef4f9..b86f846 100644
--- a/modules/stream_filter/decomp.c
+++ b/modules/stream_filter/decomp.c
@@ -186,7 +186,7 @@ static int Read (stream_t *stream, void *buf, unsigned int buflen)
p_sys->offset += length;
if (buflen > 0)
- length += Read (stream, ((char *)buf) + length, buflen - length);
+ length += Read (stream, ((char *)buf) + length, buflen);
return length;
}
assert ((buf != NULL) || (buflen == 0));
--
1.7.5.4
More information about the vlc-devel
mailing list