[MPlayer-cvslog] r31874 - trunk/libmpdemux/demux_ts.c

diego subversion at mplayerhq.hu
Sat Jul 31 17:22:11 CEST 2010


Author: diego
Date: Sat Jul 31 17:22:11 2010
New Revision: 31874

Log:
Initialize frame_length variable to zero to avoid the warning:
libmpdemux/demux_ts.c:669: warning: 'frame_length' may be used uninitialized in this function

Modified:
   trunk/libmpdemux/demux_ts.c

Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c	Sat Jul 31 17:17:17 2010	(r31873)
+++ trunk/libmpdemux/demux_ts.c	Sat Jul 31 17:22:11 2010	(r31874)
@@ -666,7 +666,7 @@ int mp_a52_framesize(uint8_t * buf, int 
 //second stage: returns the count of A52 syncwords found
 static int a52_check(char *buf, int len)
 {
-	int cnt, frame_length, ok, srate;
+	int cnt, frame_length = 0, ok, srate;
 
 	cnt = ok = 0;
 	if(len < 8)


More information about the MPlayer-cvslog mailing list