comparison stream/rtp.h @ 19319:c565b6ac1d2a

moved some definitions from rtp.h to rtp.c as they're not exported or used anywhere else
author ben
date Fri, 04 Aug 2006 19:36:41 +0000
parents a3ddd3320b47
children 06eef86d21cc
comparison
equal deleted inserted replaced
19318:a3ddd3320b47 19319:c565b6ac1d2a
13 #include <sys/socket.h> 13 #include <sys/socket.h>
14 #else 14 #else
15 #include <winsock2.h> 15 #include <winsock2.h>
16 #endif 16 #endif
17 17
18 struct rtpbits {
19 unsigned int v:2; /* version: 2 */
20 unsigned int p:1; /* is there padding appended: 0 */
21 unsigned int x:1; /* number of extension headers: 0 */
22 unsigned int cc:4; /* number of CSRC identifiers: 0 */
23 unsigned int m:1; /* marker: 0 */
24 unsigned int pt:7; /* payload type: 33 for MPEG2 TS - RFC 1890 */
25 unsigned int sequence:16; /* sequence number: random */
26 };
27
28 struct rtpheader { /* in network byte order */
29 struct rtpbits b;
30 int timestamp; /* start: random */
31 int ssrc; /* random */
32 };
33
34
35 static int getrtp2(int fd, struct rtpheader *rh, char** data, int* lengthData);
36 int read_rtp_from_server(int fd, char *buffer, int length); 18 int read_rtp_from_server(int fd, char *buffer, int length);
37 19
38 #endif 20 #endif