[vlc-devel] commit: Fix buggy memcpy in DstreamRead ( Marian Ďurkovič )
git version control
git at videolan.org
Mon Sep 7 21:27:33 CEST 2009
vlc | branch: 1.0-bugfix | Marian Ďurkovič <md at bts.sk> | Sat Sep 5 08:57:44 2009 +0200| [a14ae104d3974c4b2e888ba168e71613354834ad] | committer: Rémi Denis-Courmont
Fix buggy memcpy in DstreamRead
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 494826773c6938e3a87b12b1026c8b53c73a01a0)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a14ae104d3974c4b2e888ba168e71613354834ad
---
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 2d07eae..7435982 100644
--- a/src/input/stream_demux.c
+++ b/src/input/stream_demux.c
@@ -161,6 +161,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