From c446e2e8ee2d5098e4fd6a0fd2794d135fd61dae Mon Sep 17 00:00:00 2001 From: nicodvb Date: Sat, 11 Mar 2006 23:26:02 +0000 Subject: [PATCH] init variable in parse_mp4_object_descriptor before using it; fixes cid 237 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17817 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_ts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmpdemux/demux_ts.c b/libmpdemux/demux_ts.c index 4292a16614..0a59277914 100644 --- a/libmpdemux/demux_ts.c +++ b/libmpdemux/demux_ts.c @@ -1934,6 +1934,7 @@ static void parse_mp4_object_descriptor(pmt_t *pmt, uint8_t *buf, int len, void { 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)