mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 23:07:02 +00:00
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:
parent
ddf7776199
commit
a7a6e41c24
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user