]> git.sesse.net Git - vlc/commitdiff
yeah, writing 4 0 times is fun, but..
authorPavlov Konstantin <thresh@videolan.org>
Tue, 10 Oct 2006 15:54:41 +0000 (15:54 +0000)
committerPavlov Konstantin <thresh@videolan.org>
Tue, 10 Oct 2006 15:54:41 +0000 (15:54 +0000)
modules/demux/ty.c

index 60cb28d04ad2f5304902cd5a7edb9ae83c074790..fbbc2057cd45f8860feb9860566dfca1478d29fa 100644 (file)
@@ -308,7 +308,7 @@ static int check_sync_pes( demux_t *p_demux, block_t *p_block,
         if( offset < 0 )
         {
             /* 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;
             if( rec_len > 4 )
                 msg_Err( p_demux, "PES header not found in record of %d bytes!",