Mercurial > mplayer.hg
view libmpdemux/rtp.h @ 14879:3b89d966f17e
Sync with 1.893:
1.881: added new mpeg muxer options
1.882: done in a previous commit
1.883: fixes for previous commits
1.884: Mention that vstrict is necessary for some codecs, add ffvhuff.
1.885: Finish incomplete -af-adv documentation.
1.886: Sync -channels and -srate options with the XML docs.
1.887: spelling, wording and consistency fixes
1.888: renamed init_adelay to vdelay with opposite range
1.889: List the 'context' option for the ffvhuff codec.
1.890: indentation fix
1.891: vstrict vs mjpeg update, typo
1.892: done in a previous commit
1.893: done in a previous commit
author | gpoirier |
---|---|
date | Tue, 01 Mar 2005 20:33:50 +0000 |
parents | befb79b0232e |
children | 8dd7a656eaf8 |
line wrap: on
line source
#ifndef _RTP_H #define _RTP_H #include "config.h" #ifndef HAVE_WINSOCK2 #include <sys/socket.h> #else #include <winsock2.h> #endif struct rtpbits { unsigned int v:2; /* version: 2 */ unsigned int p:1; /* is there padding appended: 0 */ unsigned int x:1; /* number of extension headers: 0 */ unsigned int cc:4; /* number of CSRC identifiers: 0 */ unsigned int m:1; /* marker: 0 */ unsigned int pt:7; /* payload type: 33 for MPEG2 TS - RFC 1890 */ unsigned int sequence:16; /* sequence number: random */ }; struct rtpheader { /* in network byte order */ struct rtpbits b; int timestamp; /* start: random */ int ssrc; /* random */ }; int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData); #endif