Commit 8a19ea4f authored by Dominique Leuenberger's avatar Dominique Leuenberger Committed by Rémi Denis-Courmont

inverted parameters to memset. Setting the length to 0 looks bogus.

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 18e24161
...@@ -607,7 +607,7 @@ static int check_sync_pes( demux_t *p_demux, block_t *p_block, ...@@ -607,7 +607,7 @@ static int check_sync_pes( demux_t *p_demux, block_t *p_block,
if( offset < 0 ) if( offset < 0 )
{ {
/* no header found, fake some 00's (this works, believe me) */ /* no header found, fake some 00's (this works, believe me) */
memset( p_sys->pes_buffer, 4, 0 ); memset( p_sys->pes_buffer, 0, 4 );
p_sys->i_pes_buf_cnt = 4; p_sys->i_pes_buf_cnt = 4;
if( rec_len > 4 ) if( rec_len > 4 )
msg_Err( p_demux, "PES header not found in record of %d bytes!", msg_Err( p_demux, "PES header not found in record of %d bytes!",
......
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