[vlc-devel] [PATCH 2/3] aribcam: don't discard remaining data.
Kazuki Yamaguchi
k at rhe.jp
Mon Feb 15 16:33:28 CET 2016
---
modules/stream_filter/aribcam.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/stream_filter/aribcam.c b/modules/stream_filter/aribcam.c
index b5ff755..bb519d6 100644
--- a/modules/stream_filter/aribcam.c
+++ b/modules/stream_filter/aribcam.c
@@ -175,8 +175,9 @@ static int DecoderRead( stream_t *p_stream, uint8_t *p_dst, int i_toread )
/* Use data from previous reads */
size_t i_fromremain = RemainRead( p_stream, p_dst, i_toread );
- i_toread -= i_fromremain;
i_total_read += i_fromremain;
+ p_dst += i_fromremain;
+ i_toread -= i_fromremain;
while( i_toread )
{
--
2.7.0
More information about the vlc-devel
mailing list