[vlc-commits] aribcam: don't discard remaining data.

Kazuki Yamaguchi git at videolan.org
Thu Feb 18 17:53:03 CET 2016


vlc | branch: master | Kazuki Yamaguchi <k at rhe.jp> | Tue Feb 16 00:33:28 2016 +0900| [89f119a6acd748f262ca50da14e35c9d6440712b] | committer: Yuudai Yamashigi

aribcam: don't discard remaining data.

Signed-off-by: Yuudai Yamashigi <yyamashigi at videolan.org>

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

 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 )
     {



More information about the vlc-commits mailing list