Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小白菜888
Ffmpeg
提交
9bcb92ca
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,发现更多精彩内容 >>
提交
9bcb92ca
编写于
8月 05, 2008
作者:
A
Aurelien Jacobs
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
matroskadec: rename ebml_parse() to ebml_parse_nest()
Originally committed as revision 14596 to
svn://svn.ffmpeg.org/ffmpeg/trunk
上级
c005b3f2
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
7 deletion
+7
-7
libavformat/matroskadec.c
libavformat/matroskadec.c
+7
-7
未找到文件。
libavformat/matroskadec.c
浏览文件 @
9bcb92ca
...
...
@@ -846,7 +846,7 @@ static int matroska_probe(AVProbeData *p)
return
0
;
}
static
int
ebml_parse
(
MatroskaDemuxContext
*
matroska
,
EbmlSyntax
*
syntax
,
static
int
ebml_parse
_nest
(
MatroskaDemuxContext
*
matroska
,
EbmlSyntax
*
syntax
,
void
*
data
,
int
once
);
static
int
ebml_parse_elem
(
MatroskaDemuxContext
*
matroska
,
...
...
@@ -881,8 +881,8 @@ static int ebml_parse_elem(MatroskaDemuxContext *matroska,
return
res
;
if
(
id
==
MATROSKA_ID_SEGMENT
)
matroska
->
segment_start
=
url_ftell
(
matroska
->
ctx
->
pb
);
return
ebml_parse
(
matroska
,
syntax
->
def
.
n
,
data
,
0
);
case
EBML_PASS
:
return
ebml_parse
(
matroska
,
syntax
->
def
.
n
,
data
,
1
);
return
ebml_parse
_nest
(
matroska
,
syntax
->
def
.
n
,
data
,
0
);
case
EBML_PASS
:
return
ebml_parse
_nest
(
matroska
,
syntax
->
def
.
n
,
data
,
1
);
case
EBML_STOP
:
*
(
int
*
)
data
=
1
;
return
1
;
default:
url_fskip
(
pb
,
length
);
return
0
;
}
...
...
@@ -905,7 +905,7 @@ static int ebml_parse_id(MatroskaDemuxContext *matroska, EbmlSyntax *syntax,
return
ebml_parse_elem
(
matroska
,
&
syntax
[
i
],
data
);
}
static
int
ebml_parse
(
MatroskaDemuxContext
*
matroska
,
EbmlSyntax
*
syntax
,
static
int
ebml_parse
_nest
(
MatroskaDemuxContext
*
matroska
,
EbmlSyntax
*
syntax
,
void
*
data
,
int
once
)
{
int
i
,
res
=
0
;
...
...
@@ -1125,7 +1125,7 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
matroska
->
ctx
=
s
;
/* First read the EBML header. */
if
(
ebml_parse
(
matroska
,
ebml_syntax
,
&
ebml
,
1
)
if
(
ebml_parse
_nest
(
matroska
,
ebml_syntax
,
&
ebml
,
1
)
||
ebml
.
version
>
EBML_VERSION
||
ebml
.
max_size
>
sizeof
(
uint64_t
)
||
ebml
.
id_length
>
sizeof
(
uint32_t
)
||
strcmp
(
ebml
.
doctype
,
"matroska"
)
||
ebml
.
doctype_version
>
2
)
{
...
...
@@ -1138,7 +1138,7 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
ebml_free
(
ebml_syntax
,
&
ebml
);
/* The next thing is a segment. */
if
(
ebml_parse
(
matroska
,
matroska_segments
,
matroska
,
1
)
<
0
)
if
(
ebml_parse
_nest
(
matroska
,
matroska_segments
,
matroska
,
1
)
<
0
)
return
-
1
;
matroska_execute_seekhead
(
matroska
);
...
...
@@ -1628,7 +1628,7 @@ static int matroska_parse_cluster(MatroskaDemuxContext *matroska)
MatroskaCluster
cluster
=
{
0
};
EbmlList
*
blocks_list
;
MatroskaBlock
*
blocks
;
int
i
,
res
=
ebml_parse
(
matroska
,
matroska_clusters
,
&
cluster
,
1
);
int
i
,
res
=
ebml_parse
_nest
(
matroska
,
matroska_clusters
,
&
cluster
,
1
);
blocks_list
=
&
cluster
.
blocks
;
blocks
=
blocks_list
->
elem
;
for
(
i
=
0
;
!
res
&&
i
<
blocks_list
->
nb_elem
;
i
++
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录