From ec55edba312199245d7b830284b861673d27e999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 15 Mar 2010 16:31:15 +0000 Subject: [PATCH] Make rtsp_skip_packet non-static, add ff prefix Originally committed as revision 22547 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.c | 4 ++-- libavformat/rtsp.h | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index fafd27c056..a0e0b9e1a5 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -861,7 +861,7 @@ void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf) } /* skip a RTP/TCP interleaved packet */ -static void rtsp_skip_packet(AVFormatContext *s) +void ff_rtsp_skip_packet(AVFormatContext *s) { RTSPState *rt = s->priv_data; int ret, len, len1; @@ -917,7 +917,7 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply, if (return_on_interleaved_data) { return 1; } else - rtsp_skip_packet(s); + ff_rtsp_skip_packet(s); } else if (ch != '\r') { if ((q - buf) < sizeof(buf) - 1) *q++ = ch; diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index a322281282..13e251b72b 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -398,6 +398,11 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply, unsigned char **content_ptr, int return_on_interleaved_data); +/** + * Skip a RTP/TCP interleaved packet. + */ +void ff_rtsp_skip_packet(AVFormatContext *s); + /** * Connect to the RTSP server and set up the individual media streams. * This can be used for both muxers and demuxers.