From 1243c722510f6cf878039e5edfd912ab25fe66f6 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 8 Aug 2012 23:05:52 +0300 Subject: rtsp: Support mpegts in raw udp packets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is basically the same way as mpegts packets are parsed in rtpdec.c. Signed-off-by: Martin Storsjö --- libavformat/rtsp.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libavformat/rtsp.h') diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 704586a94e..d16c98ca8a 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -311,6 +311,13 @@ typedef struct RTSPState { * other cases, this is a copy of AVFormatContext->filename. */ char control_uri[1024]; + /** The following are used for parsing raw mpegts in udp */ + //@{ + struct MpegTSContext *ts; + int recvbuf_pos; + int recvbuf_len; + //@} + /** Additional output handle, used when input and output are done * separately, eg for HTTP tunneling. */ URLContext *rtsp_hd_out; -- cgit v1.2.3