[vlc-devel] commit: Fix buggy memcpy in DstreamRead ( Marian Ďurkovič )

git version control git at videolan.org
Mon Sep 7 21:26:09 CEST 2009


vlc | branch: master | Marian Ďurkovič <md at bts.sk> | Sat Sep  5 08:57:44 2009 +0200| [494826773c6938e3a87b12b1026c8b53c73a01a0] | committer: Rémi Denis-Courmont 

Fix buggy memcpy in DstreamRead

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 src/input/stream_demux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/input/stream_demux.c b/src/input/stream_demux.c
index 69eac89..777091c 100644
--- a/src/input/stream_demux.c
+++ b/src/input/stream_demux.c
@@ -162,6 +162,7 @@ static int DStreamRead( stream_t *s, void *p_read, unsigned int i_read )
             i_copy = __MIN( i_read, p_block->i_buffer );
             if( p_out && i_copy ) memcpy( p_out, p_block->p_buffer, i_copy );
             i_read -= i_copy;
+            p_out += i_copy;
             i_out += i_copy;
             p_block->i_buffer -= i_copy;
             p_block->p_buffer += i_copy;




More information about the vlc-devel mailing list