0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/libmpdemux/rtp.h
rtognimp 18557ad90b Make rtp:// cohexist with LIVE.COM
Patch by Nico Sabbi


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12800 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-07-11 22:47:49 +00:00

31 lines
798 B
C

#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