[MPlayer-dev-eng] [PATCH] support for mpeg transport streams in rtp
Nico Sabbi
nicola.sabbi at poste.it
Fri Apr 30 18:24:09 CEST 2010
Il venerdì 30 aprile 2010 18:08:46 Chas Williams (CONTRACTOR) ha
scritto:
> 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;
>
Please, explain. MPV identified the 4-bytes mpeg audio or video
elementary stream. Does it precede the mpegts payload???
More information about the MPlayer-dev-eng
mailing list