Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
3df54c6b
F
Ffmpeg
项目概览
小白菜888
/
Ffmpeg
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Ffmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3df54c6b
编写于
1月 02, 2011
作者:
M
Martin Storsjö
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rtsp: Add a method parameter to ff_rtsp_read_reply
Originally committed as revision 26189 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
7f8ffc4e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
6 deletion
+8
-6
libavformat/rtsp.c
libavformat/rtsp.c
+3
-3
libavformat/rtsp.h
libavformat/rtsp.h
+3
-1
libavformat/rtspdec.c
libavformat/rtspdec.c
+1
-1
libavformat/rtspenc.c
libavformat/rtspenc.c
+1
-1
未找到文件。
libavformat/rtsp.c
浏览文件 @
3df54c6b
...
...
@@ -758,7 +758,7 @@ void ff_rtsp_skip_packet(AVFormatContext *s)
int
ff_rtsp_read_reply
(
AVFormatContext
*
s
,
RTSPMessageHeader
*
reply
,
unsigned
char
**
content_ptr
,
int
return_on_interleaved_data
)
int
return_on_interleaved_data
,
const
char
*
method
)
{
RTSPState
*
rt
=
s
->
priv_data
;
char
buf
[
4096
],
buf1
[
1024
],
*
q
;
...
...
@@ -936,7 +936,7 @@ retry:
send_content_length
)))
return
ret
;
if
((
ret
=
ff_rtsp_read_reply
(
s
,
reply
,
content_ptr
,
0
)
)
<
0
)
if
((
ret
=
ff_rtsp_read_reply
(
s
,
reply
,
content_ptr
,
0
,
method
)
)
<
0
)
return
ret
;
if
(
reply
->
status_code
==
401
&&
cur_auth_type
==
HTTP_AUTH_NONE
&&
...
...
@@ -1512,7 +1512,7 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
if
(
tcp_fd
!=
-
1
&&
FD_ISSET
(
tcp_fd
,
&
rfds
))
{
RTSPMessageHeader
reply
;
ret
=
ff_rtsp_read_reply
(
s
,
&
reply
,
NULL
,
0
);
ret
=
ff_rtsp_read_reply
(
s
,
&
reply
,
NULL
,
0
,
NULL
);
if
(
ret
<
0
)
return
ret
;
/* XXX: parse message */
...
...
libavformat/rtsp.h
浏览文件 @
3df54c6b
...
...
@@ -434,13 +434,15 @@ int ff_rtsp_send_cmd(AVFormatContext *s, const char *method,
* data packets (if they are encountered), until a reply
* has been fully parsed. If no more data is available
* without parsing a reply, it will return an error.
* @param method the RTSP method this is a reply to. This affects how
* some response headers are acted upon. May be NULL.
*
* @return 1 if a data packets is ready to be received, -1 on error,
* and 0 on success.
*/
int
ff_rtsp_read_reply
(
AVFormatContext
*
s
,
RTSPMessageHeader
*
reply
,
unsigned
char
**
content_ptr
,
int
return_on_interleaved_data
);
int
return_on_interleaved_data
,
const
char
*
method
);
/**
* Skip a RTP/TCP interleaved packet.
...
...
libavformat/rtspdec.c
浏览文件 @
3df54c6b
...
...
@@ -170,7 +170,7 @@ redo:
for
(;;)
{
RTSPMessageHeader
reply
;
ret
=
ff_rtsp_read_reply
(
s
,
&
reply
,
NULL
,
1
);
ret
=
ff_rtsp_read_reply
(
s
,
&
reply
,
NULL
,
1
,
NULL
);
if
(
ret
<
0
)
return
ret
;
if
(
ret
==
1
)
/* received '$' */
...
...
libavformat/rtspenc.c
浏览文件 @
3df54c6b
...
...
@@ -195,7 +195,7 @@ static int rtsp_write_packet(AVFormatContext *s, AVPacket *pkt)
* since it would block and wait for an RTSP reply on the socket
* (which may not be coming any time soon) if it handles
* interleaved packets internally. */
ret
=
ff_rtsp_read_reply
(
s
,
&
reply
,
NULL
,
1
);
ret
=
ff_rtsp_read_reply
(
s
,
&
reply
,
NULL
,
1
,
NULL
);
if
(
ret
<
0
)
return
AVERROR
(
EPIPE
);
if
(
ret
==
1
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录