[MPlayer-cvslog] r24931 - trunk/libmpdemux/muxer_mpeg.c
nicodvb
subversion at mplayerhq.hu
Fri Nov 2 18:43:39 CET 2007
Author: nicodvb
Date: Fri Nov 2 18:43:39 2007
New Revision: 24931
Log:
remove the registration descriptor from the PSM: writing the fourcc in it makes it total crap
Modified:
trunk/libmpdemux/muxer_mpeg.c
Modified: trunk/libmpdemux/muxer_mpeg.c
==============================================================================
--- trunk/libmpdemux/muxer_mpeg.c (original)
+++ trunk/libmpdemux/muxer_mpeg.c Fri Nov 2 18:43:39 2007
@@ -647,14 +647,9 @@ static int write_mpeg_psm(muxer_t *muxer
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
More information about the MPlayer-cvslog
mailing list