changeset 24903:b4cdc74f4496

remove the registration descriptor from the PSM: writing the fourcc in it makes it total crap
author nicodvb
date Fri, 02 Nov 2007 17:43:39 +0000
parents c1660ecae8c4
children 75e930e20f48
files libmpdemux/muxer_mpeg.c
diffstat 1 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/muxer_mpeg.c	Fri Nov 02 11:43:03 2007 +0000
+++ b/libmpdemux/muxer_mpeg.c	Fri Nov 02 17:43:39 2007 +0000
@@ -647,14 +647,9 @@
 			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