Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
f984dcf6
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,发现更多精彩内容 >>
提交
f984dcf6
编写于
3月 08, 2010
作者:
M
Martin Storsjö
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Reindent
Originally committed as revision 22322 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
c5c6e67c
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
18 addition
and
18 deletion
+18
-18
libavformat/avformat.h
libavformat/avformat.h
+5
-5
libavformat/gopher.c
libavformat/gopher.c
+1
-1
libavformat/http.c
libavformat/http.c
+2
-2
libavformat/rtmpproto.c
libavformat/rtmpproto.c
+1
-1
libavformat/rtpproto.c
libavformat/rtpproto.c
+2
-2
libavformat/rtsp.c
libavformat/rtsp.c
+2
-2
libavformat/utils.c
libavformat/utils.c
+5
-5
未找到文件。
libavformat/avformat.h
浏览文件 @
f984dcf6
...
...
@@ -1344,11 +1344,11 @@ struct in_addr;
attribute_deprecated
int
resolve_host
(
struct
in_addr
*
sin_addr
,
const
char
*
hostname
);
void
ff_url_split
(
char
*
proto
,
int
proto_size
,
char
*
authorization
,
int
authorization_size
,
char
*
hostname
,
int
hostname_size
,
int
*
port_ptr
,
char
*
path
,
int
path_size
,
const
char
*
url
);
char
*
authorization
,
int
authorization_size
,
char
*
hostname
,
int
hostname_size
,
int
*
port_ptr
,
char
*
path
,
int
path_size
,
const
char
*
url
);
/**
* Assembles a URL string from components. This is the reverse operation
...
...
libavformat/gopher.c
浏览文件 @
f984dcf6
...
...
@@ -90,7 +90,7 @@ static int gopher_open(URLContext *h, const char *uri, int flags)
/* needed in any case to build the host string */
ff_url_split
(
NULL
,
0
,
auth
,
sizeof
(
auth
),
hostname
,
sizeof
(
hostname
),
&
port
,
path
,
sizeof
(
path
),
uri
);
path
,
sizeof
(
path
),
uri
);
if
(
port
<
0
)
port
=
70
;
...
...
libavformat/http.c
浏览文件 @
f984dcf6
...
...
@@ -70,12 +70,12 @@ static int http_open_cnx(URLContext *h)
redo:
/* needed in any case to build the host string */
ff_url_split
(
NULL
,
0
,
auth
,
sizeof
(
auth
),
hostname
,
sizeof
(
hostname
),
&
port
,
path1
,
sizeof
(
path1
),
s
->
location
);
path1
,
sizeof
(
path1
),
s
->
location
);
ff_url_join
(
hoststr
,
sizeof
(
hoststr
),
NULL
,
NULL
,
hostname
,
port
,
NULL
);
if
(
use_proxy
)
{
ff_url_split
(
NULL
,
0
,
auth
,
sizeof
(
auth
),
hostname
,
sizeof
(
hostname
),
&
port
,
NULL
,
0
,
proxy_path
);
NULL
,
0
,
proxy_path
);
path
=
s
->
location
;
}
else
{
if
(
path1
[
0
]
==
'\0'
)
...
...
libavformat/rtmpproto.c
浏览文件 @
f984dcf6
...
...
@@ -813,7 +813,7 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
rt
->
is_input
=
!
(
flags
&
URL_WRONLY
);
ff_url_split
(
proto
,
sizeof
(
proto
),
NULL
,
0
,
hostname
,
sizeof
(
hostname
),
&
port
,
path
,
sizeof
(
path
),
s
->
filename
);
path
,
sizeof
(
path
),
s
->
filename
);
if
(
port
<
0
)
port
=
RTMP_DEFAULT_PORT
;
...
...
libavformat/rtpproto.c
浏览文件 @
f984dcf6
...
...
@@ -65,7 +65,7 @@ int rtp_set_remote_url(URLContext *h, const char *uri)
char
path
[
1024
];
ff_url_split
(
NULL
,
0
,
NULL
,
0
,
hostname
,
sizeof
(
hostname
),
&
port
,
path
,
sizeof
(
path
),
uri
);
path
,
sizeof
(
path
),
uri
);
ff_url_join
(
buf
,
sizeof
(
buf
),
"udp"
,
NULL
,
hostname
,
port
,
"%s"
,
path
);
udp_set_remote_url
(
s
->
rtp_hd
,
buf
);
...
...
@@ -135,7 +135,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags)
h
->
priv_data
=
s
;
ff_url_split
(
NULL
,
0
,
NULL
,
0
,
hostname
,
sizeof
(
hostname
),
&
port
,
path
,
sizeof
(
path
),
uri
);
path
,
sizeof
(
path
),
uri
);
/* extract parameters */
ttl
=
-
1
;
local_port
=
-
1
;
...
...
libavformat/rtsp.c
浏览文件 @
f984dcf6
...
...
@@ -447,7 +447,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,
/* XXX: may need to add full url resolution */
ff_url_split
(
proto
,
sizeof
(
proto
),
NULL
,
0
,
NULL
,
0
,
NULL
,
NULL
,
0
,
p
);
NULL
,
NULL
,
0
,
p
);
if
(
proto
[
0
]
==
'\0'
)
{
/* relative control URL */
if
(
rtsp_st
->
control_url
[
strlen
(
rtsp_st
->
control_url
)
-
1
]
!=
'/'
)
...
...
@@ -1391,7 +1391,7 @@ int ff_rtsp_connect(AVFormatContext *s)
redirect:
/* extract hostname and port */
ff_url_split
(
NULL
,
0
,
auth
,
sizeof
(
auth
),
host
,
sizeof
(
host
),
&
port
,
path
,
sizeof
(
path
),
s
->
filename
);
host
,
sizeof
(
host
),
&
port
,
path
,
sizeof
(
path
),
s
->
filename
);
if
(
*
auth
)
{
int
auth_len
=
strlen
(
auth
),
b64_len
=
((
auth_len
+
2
)
/
3
)
*
4
+
1
;
...
...
libavformat/utils.c
浏览文件 @
f984dcf6
...
...
@@ -3366,11 +3366,11 @@ void av_pkt_dump_log(void *avcl, int level, AVPacket *pkt, int dump_payload)
}
void
ff_url_split
(
char
*
proto
,
int
proto_size
,
char
*
authorization
,
int
authorization_size
,
char
*
hostname
,
int
hostname_size
,
int
*
port_ptr
,
char
*
path
,
int
path_size
,
const
char
*
url
)
char
*
authorization
,
int
authorization_size
,
char
*
hostname
,
int
hostname_size
,
int
*
port_ptr
,
char
*
path
,
int
path_size
,
const
char
*
url
)
{
const
char
*
p
,
*
ls
,
*
at
,
*
col
,
*
brk
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录