changeset 17816:c3530af0e23c

init variable in parse_mp4_object_descriptor before using it; fixes cid 237
author nicodvb
date Sat, 11 Mar 2006 23:26:02 +0000
parents 36a155ee4d27
children 560617cdcc3b
files libmpdemux/demux_ts.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c	Sat Mar 11 23:21:09 2006 +0000
+++ b/libmpdemux/demux_ts.c	Sat Mar 11 23:26:02 2006 +0000
@@ -1934,6 +1934,7 @@
 {
 	int i, j = 0, id;
 	
+	i=0;
 	id = (buf[0] << 2) | ((buf[1] & 0xc0) >> 6);
 	mp_msg(MSGT_DEMUX, MSGL_V, "PARSE_MP4_OBJECT_DESCRIPTOR: len=%d, OD_ID=%d\n", len, id);
 	if(buf[1] & 0x20)