remove the registration descriptor from the PSM: writing the fourcc in it makes it total crap

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24931 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2007-11-02 17:43:39 +00:00
parent ddf7776199
commit a7a6e41c24
1 changed files with 2 additions and 7 deletions

View File

@ -647,14 +647,9 @@ static int write_mpeg_psm(muxer_t *muxer, char *buff)
buff[len++] = priv->psm_info.streams[i].type;
buff[len++] = priv->psm_info.streams[i].id;
buff[len++] = 0; //len of descriptor upper ...
buff[len++] = 6; //... lower
buff[len++] = 0; //... lower
//registration descriptor
buff[len++] = 0x5; //tag
buff[len++] = 4; //length: 4 bytes
memcpy(&(buff[len]), (char*) &(priv->psm_info.streams[i].format), 4);
len += 4;
dlen += 10;
dlen += 4;
}
}
*(uint16_t *)(&buff[10]) = be2me_16(dlen); //length of the es descriptors