Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
云duo
FFmpeg
提交
e16ead07
F
FFmpeg
项目概览
云duo
/
FFmpeg
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
FFmpeg
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e16ead07
编写于
3月 02, 2011
作者:
A
Anton Khirnov
提交者:
Ronald S. Bultje
3月 04, 2011
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lavf: deprecate get_strz() in favor of avio_get_str
Signed-off-by:
N
Ronald S. Bultje
<
rsbultje@gmail.com
>
上级
41d8555f
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
14 addition
and
15 deletion
+14
-15
libavformat/avio.h
libavformat/avio.h
+6
-1
libavformat/aviobuf.c
libavformat/aviobuf.c
+3
-10
libavformat/cafdec.c
libavformat/cafdec.c
+2
-2
libavformat/ffmdec.c
libavformat/ffmdec.c
+2
-1
libavformat/mov.c
libavformat/mov.c
+1
-1
未找到文件。
libavformat/avio.h
浏览文件 @
e16ead07
...
...
@@ -548,7 +548,12 @@ int avio_get_str(AVIOContext *pb, int maxlen, char *buf, int buflen);
int
avio_get_str16le
(
AVIOContext
*
pb
,
int
maxlen
,
char
*
buf
,
int
buflen
);
int
avio_get_str16be
(
AVIOContext
*
pb
,
int
maxlen
,
char
*
buf
,
int
buflen
);
char
*
get_strz
(
AVIOContext
*
s
,
char
*
buf
,
int
maxlen
);
#if FF_API_OLD_AVIO
/**
* @deprecated use avio_get_str instead
*/
attribute_deprecated
char
*
get_strz
(
AVIOContext
*
s
,
char
*
buf
,
int
maxlen
);
#endif
unsigned
int
avio_rb16
(
AVIOContext
*
s
);
unsigned
int
avio_rb24
(
AVIOContext
*
s
);
unsigned
int
avio_rb32
(
AVIOContext
*
s
);
...
...
libavformat/aviobuf.c
浏览文件 @
e16ead07
...
...
@@ -675,20 +675,13 @@ unsigned int avio_rb32(AVIOContext *s)
return
val
;
}
#if FF_API_OLD_AVIO
char
*
get_strz
(
AVIOContext
*
s
,
char
*
buf
,
int
maxlen
)
{
int
i
=
0
;
char
c
;
while
((
c
=
avio_r8
(
s
)))
{
if
(
i
<
maxlen
-
1
)
buf
[
i
++
]
=
c
;
}
buf
[
i
]
=
0
;
/* Ensure null terminated, but may be truncated */
avio_get_str
(
s
,
INT_MAX
,
buf
,
maxlen
);
return
buf
;
}
#endif
int
ff_get_line
(
AVIOContext
*
s
,
char
*
buf
,
int
maxlen
)
{
...
...
libavformat/cafdec.c
浏览文件 @
e16ead07
...
...
@@ -185,8 +185,8 @@ static void read_info_chunk(AVFormatContext *s, int64_t size)
for
(
i
=
0
;
i
<
nb_entries
;
i
++
)
{
char
key
[
32
];
char
value
[
1024
];
get_strz
(
pb
,
key
,
sizeof
(
key
));
get_strz
(
pb
,
value
,
sizeof
(
value
));
avio_get_str
(
pb
,
INT_MAX
,
key
,
sizeof
(
key
));
avio_get_str
(
pb
,
INT_MAX
,
value
,
sizeof
(
value
));
av_metadata_set2
(
&
s
->
metadata
,
key
,
value
,
0
);
}
}
...
...
libavformat/ffmdec.c
浏览文件 @
e16ead07
...
...
@@ -325,7 +325,8 @@ static int ffm_read_header(AVFormatContext *s, AVFormatParameters *ap)
codec
->
qcompress
=
avio_rb16
(
pb
)
/
10000
.
0
;
codec
->
qblur
=
avio_rb16
(
pb
)
/
10000
.
0
;
codec
->
bit_rate_tolerance
=
avio_rb32
(
pb
);
codec
->
rc_eq
=
av_strdup
(
get_strz
(
pb
,
rc_eq_buf
,
sizeof
(
rc_eq_buf
)));
avio_get_str
(
pb
,
INT_MAX
,
rc_eq_buf
,
sizeof
(
rc_eq_buf
));
codec
->
rc_eq
=
av_strdup
(
rc_eq_buf
);
codec
->
rc_max_rate
=
avio_rb32
(
pb
);
codec
->
rc_min_rate
=
avio_rb32
(
pb
);
codec
->
rc_buffer_size
=
avio_rb32
(
pb
);
...
...
libavformat/mov.c
浏览文件 @
e16ead07
...
...
@@ -2331,7 +2331,7 @@ static void mov_read_chapters(AVFormatContext *s)
avio_get_str16le
(
sc
->
pb
,
len
,
title
,
title_len
);
else
{
AV_WB16
(
title
,
ch
);
get_strz
(
sc
->
pb
,
title
+
2
,
len
-
1
);
avio_get_str
(
sc
->
pb
,
len
-
2
,
title
+
2
,
title_len
-
2
);
}
ff_new_chapter
(
s
,
i
,
st
->
time_base
,
sample
->
timestamp
,
end
,
title
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录