diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2003-10-29 14:25:27 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2003-10-29 14:25:27 +0000 |
commit | 8b1ab7bf219791efafa11fb4bc260f14c02160b5 (patch) | |
tree | 2826478251e812c4f42b2540f2d1de0cc5650c2b /libavformat/rtp.h | |
parent | da24c5e330ab90b5249f4fb94044b78919f64d4f (diff) | |
download | ffmpeg-8b1ab7bf219791efafa11fb4bc260f14c02160b5.tar.gz |
added MPEG2TS support in RTP, SDP and RTSP - replaced fake RTP demux by a specific API
Originally committed as revision 2448 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp.h')
-rw-r--r-- | libavformat/rtp.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/libavformat/rtp.h b/libavformat/rtp.h index 0c0ae35ac0..0d9869236e 100644 --- a/libavformat/rtp.h +++ b/libavformat/rtp.h @@ -19,14 +19,35 @@ #ifndef RTP_H #define RTP_H +enum RTPPayloadType { + RTP_PT_ULAW = 0, + RTP_PT_GSM = 3, + RTP_PT_G723 = 4, + RTP_PT_ALAW = 8, + RTP_PT_S16BE_STEREO = 10, + RTP_PT_S16BE_MONO = 11, + RTP_PT_MPEGAUDIO = 14, + RTP_PT_JPEG = 26, + RTP_PT_H261 = 31, + RTP_PT_MPEGVIDEO = 32, + RTP_PT_MPEG2TS = 33, + RTP_PT_H263 = 34, /* old H263 encapsulation */ + RTP_PT_PRIVATE = 96, +}; + #define RTP_MIN_PACKET_LENGTH 12 #define RTP_MAX_PACKET_LENGTH 1500 /* XXX: suppress this define */ int rtp_init(void); int rtp_get_codec_info(AVCodecContext *codec, int payload_type); int rtp_get_payload_type(AVCodecContext *codec); -int rtp_parse_packet(AVFormatContext *s1, AVPacket *pkt, - const unsigned char *buf, int len); + +typedef struct RTPDemuxContext RTPDemuxContext; + +RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, int payload_type); +int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt, + const uint8_t *buf, int len); +void rtp_parse_close(RTPDemuxContext *s); extern AVOutputFormat rtp_mux; extern AVInputFormat rtp_demux; |