[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 17:08:39 CEST 2009
vlc | branch: 1.0-bugfix | Dominique Leuenberger <dominique at leuenberger.net> | Thu Jul 23 09:33:55 2009 +0200| [9a370434ff08a8969144f6bc41f8d6c9da6bb268] | 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>
(cherry picked from commit 8a19ea4f04cad8310bf850c71e86b740dff1d4de)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9a370434ff08a8969144f6bc41f8d6c9da6bb268
---
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 63d8402..8ead0bf 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