[MPlayer-dev-eng] [PATCH] support for mpeg transport streams in rtp

Chas Williams (CONTRACTOR) chas at cmf.nrl.navy.mil
Fri Apr 30 18:08:46 CEST 2010


per rfc 2250, you need to skip an additional 4 bytes of header for
mpeg transport streams.  if you dont do this, the demuxer cant 
detect the mpeg transport stream.

Index: stream/rtp.c
===================================================================
--- stream/rtp.c	(revision 31105)
+++ stream/rtp.c	(working copy)
@@ -246,6 +246,9 @@
 
   headerSize = 12 + 4*rh->b.cc; /* in bytes */
 
+  if (rh->b.pt == 32)		/* 32 = MPV from RFC 1890 */
+	headerSize += 4;	/* skip MPEG video-specific header RFC 2250 */
+
   *lengthData = lengthPacket - headerSize;
   *data = (char*) buf + headerSize;
 



More information about the MPlayer-dev-eng mailing list