Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
f47ac3c6
Commit
f47ac3c6
authored
Jul 09, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskadec: reindent
parent
31ad14c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
matroskadec.c
libavformat/matroskadec.c
+15
-15
No files found.
libavformat/matroskadec.c
View file @
f47ac3c6
...
...
@@ -1129,7 +1129,7 @@ static int matroska_parse_seekhead_entry(MatroskaDemuxContext *matroska, int idx
||
seekhead
[
idx
].
id
==
MATROSKA_ID_CLUSTER
)
return
0
;
/* seek */
/* seek */
offset
=
seekhead
[
idx
].
pos
+
matroska
->
segment_start
;
if
(
avio_seek
(
matroska
->
ctx
->
pb
,
offset
,
SEEK_SET
)
==
offset
)
{
/* We don't want to lose our seekhead level, so we add
...
...
@@ -1140,22 +1140,22 @@ static int matroska_parse_seekhead_entry(MatroskaDemuxContext *matroska, int idx
"cannot parse further.
\n
"
,
EBML_MAX_DEPTH
);
ret
=
AVERROR_INVALIDDATA
;
}
else
{
level
.
start
=
0
;
level
.
length
=
(
uint64_t
)
-
1
;
matroska
->
levels
[
matroska
->
num_levels
]
=
level
;
matroska
->
num_levels
++
;
matroska
->
current_id
=
0
;
ebml_parse
(
matroska
,
matroska_segment
,
matroska
);
/* remove dummy level */
while
(
matroska
->
num_levels
)
{
uint64_t
length
=
matroska
->
levels
[
--
matroska
->
num_levels
].
length
;
if
(
length
==
(
uint64_t
)
-
1
)
break
;
level
.
start
=
0
;
level
.
length
=
(
uint64_t
)
-
1
;
matroska
->
levels
[
matroska
->
num_levels
]
=
level
;
matroska
->
num_levels
++
;
matroska
->
current_id
=
0
;
ebml_parse
(
matroska
,
matroska_segment
,
matroska
);
/* remove dummy level */
while
(
matroska
->
num_levels
)
{
uint64_t
length
=
matroska
->
levels
[
--
matroska
->
num_levels
].
length
;
if
(
length
==
(
uint64_t
)
-
1
)
break
;
}
}
}
}
/* seek back */
avio_seek
(
matroska
->
ctx
->
pb
,
before_pos
,
SEEK_SET
);
matroska
->
level_up
=
level_up
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment