Mercurial > mplayer.hg
view libmpdemux/rtp.h @ 13168:ce046ef860da
EDL enhancement/fixes:
*Some edl's code moved from mplayer.c to edl.c (mencoder will use the
same functions)
* slighty faster
* removed MAX_EDL_ENTRIES limit (just reserve the memory we really need)
* really treat edl_records as a linked list (coz it is)
* edl now 'remembers' pending operations after a manual _seek_
* better way of handling Mute/Umute eliminates some nasty bugs
when manual seeking (scrwed up mute/unmute order, no audio after
seek, etc)
* seeking while on -edl mode now _WORKS_
Patch by Reynaldo H. Verdejo Pinochet (reynaldo at opendot dot cl)
author | rtognimp |
---|---|
date | Sat, 28 Aug 2004 00:46:05 +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