[vlc-devel] commit: inverted parameters to memset. Setting the length to 0 looks bogus. (Dominique Leuenberger )

git version control git at videolan.org
Thu Jul 23 16:39:27 CEST 2009


vlc | branch: master | Dominique Leuenberger <dominique at leuenberger.net> | Thu Jul 23 09:33:55 2009 +0200| [8a19ea4f04cad8310bf850c71e86b740dff1d4de] | committer: Rémi Denis-Courmont 

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

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8a19ea4f04cad8310bf850c71e86b740dff1d4de
---

 modules/demux/ty.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/demux/ty.c b/modules/demux/ty.c
index 0c93a35..1ebf174 100644
--- a/modules/demux/ty.c
+++ b/modules/demux/ty.c
@@ -607,7 +607,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!",




More information about the vlc-devel mailing list