Mercurial > mplayer.hg
view libmpdemux/rtp.h @ 14337:d4a00d0614fb
1.814: sstep is usually inaccurate.
1.815: use a configurable-size ringbuffer instead of a pipe for buffering key events.
1.816: better explain -nodouble.
1.817: Add a file= suboption to set output file. (md5sum)
1.818: keyframes are more like 10 - 20 seconds apart, not 120 (was already corrected)
1.819: Some fixes and better wording, remove alsa9 and alsa1x audio output drivers
and make some numeric options line up properly.
1.820: better mention -vo yuv4mpeg can change output filename
author | kraymer |
---|---|
date | Mon, 03 Jan 2005 21:19:13 +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