Mercurial > mplayer.hg
view libmpdemux/demux_rtp.h @ 9565:e74916774667
Improved RTP packet buffering, by relying on the underlying OS's UDP
socket buffering. Improve A/V sync by dropping packets when one stream
gets too far behind the other. Now tries to figure out the video frame
rate automatically (if "-fps" is not used). Added support for MPEG-4
Elementary Stream video and MPEG-4 Generic audio RTP streams.
author | rsf |
---|---|
date | Tue, 11 Mar 2003 19:08:31 +0000 |
parents | 1a747aee653b |
children | 99d459e7fdb9 |
line wrap: on
line source
#ifndef _DEMUX_RTP_H #define _DEMUX_RTP_H #include <stdlib.h> #include <stdio.h> #ifndef __STREAM_H #include "stream.h" #endif #ifndef __DEMUXER_H #include "demuxer.h" #endif // Open a SDP file: stream_t* stream_open_sdp(int fd, off_t fileSize, int* file_format); // Open a RTSP URL: int rtsp_streaming_start(stream_t* stream); // Open a RTP demuxer (which was initiated either from a SDP file, // or from a RTSP URL): void demux_open_rtp(demuxer_t* demuxer); // Test whether a RTP demuxer is for a MPEG stream: int demux_is_mpeg_rtp_stream(demuxer_t* demuxer); // Read from a RTP demuxer: int demux_rtp_fill_buffer(demuxer_t *demux, demux_stream_t* ds); // Close a RTP demuxer void demux_close_rtp(demuxer_t* demuxer); #endif