Commit 49482677 authored by Marian Ďurkovič's avatar Marian Ďurkovič Committed by Rémi Denis-Courmont

Fix buggy memcpy in DstreamRead

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 9a2101cd
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment