diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2008-12-06 18:41:17 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2008-12-06 18:41:17 +0000 |
commit | 7b2a0708009c37c6bed20b9435b935aaaec7c6a1 (patch) | |
tree | 31b37e6a3d0d6f7270cb1c7ac0499a16e8b436d6 /libavformat/rtp_internal.h | |
parent | 022f0b7c0160c69983262773121439affd7d8219 (diff) | |
download | ffmpeg-7b2a0708009c37c6bed20b9435b935aaaec7c6a1.tar.gz |
Change function prototype of the sdp_parse_a_line in DynamicProtocolHandler.
This function is called in rtsp.c for each a= line in the SDP of the Describe
response after m= RTSP stream descriptors. The function prototype used to
take an AVStream argument. For RDT, however, every RTSPStream represents
a set of streams of identical content, and can thus represent multiple
AVStreams. Therefore, it should not take an AVStream as argument. This
patch modifies it to accept a AVFormatContext (of the RTSP/SDP demuxer)
instead. See discussion in "[PATCH/RFC] change function prototype of
parse_sdp_a_line" thread on ML.
Originally committed as revision 16024 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp_internal.h')
-rw-r--r-- | libavformat/rtp_internal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/rtp_internal.h b/libavformat/rtp_internal.h index 80c81cbf72..201011b382 100644 --- a/libavformat/rtp_internal.h +++ b/libavformat/rtp_internal.h @@ -66,7 +66,8 @@ struct RTPDynamicProtocolHandler_s { enum CodecID codec_id; // may be null - int (*parse_sdp_a_line) (AVStream * stream, + int (*parse_sdp_a_line) (AVFormatContext *s, + int st_index, PayloadContext *priv_data, const char *line); ///< Parse the a= line from the sdp field PayloadContext *(*open) (); ///< allocate any data needed by the rtp parsing for this dynamic data. |