mirror of
https://github.com/mpv-player/mpv
synced 2025-01-09 01:36:25 +01:00
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
This commit is contained in:
parent
c8ceab9843
commit
c446e2e8ee
@ -1934,6 +1934,7 @@ static void parse_mp4_object_descriptor(pmt_t *pmt, uint8_t *buf, int len, void
|
|||||||
{
|
{
|
||||||
int i, j = 0, id;
|
int i, j = 0, id;
|
||||||
|
|
||||||
|
i=0;
|
||||||
id = (buf[0] << 2) | ((buf[1] & 0xc0) >> 6);
|
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);
|
mp_msg(MSGT_DEMUX, MSGL_V, "PARSE_MP4_OBJECT_DESCRIPTOR: len=%d, OD_ID=%d\n", len, id);
|
||||||
if(buf[1] & 0x20)
|
if(buf[1] & 0x20)
|
||||||
|
Loading…
Reference in New Issue
Block a user