Commit b397e42f authored by François Cartegnie's avatar François Cartegnie 🤞
Browse files

stream_demux: fix crash on stream_Seek()

tried to increment NULL
parent cdbd643e
......@@ -200,7 +200,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;
if ( p_out ) p_out += i_copy;
i_out += i_copy;
p_block->i_buffer -= i_copy;
p_block->p_buffer += i_copy;
......
Supports Markdown
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