mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
Make rtsp_skip_packet non-static, add ff prefix
Originally committed as revision 22547 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c040badb70
commit
ec55edba31
2 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue