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
dca03ec5
Unverified
Commit
dca03ec5
authored
Sep 10, 2016
by
Rodger Combs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ass_split: reindent
parent
3b32e131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
ass_split.c
libavcodec/ass_split.c
+17
-17
No files found.
libavcodec/ass_split.c
View file @
dca03ec5
...
...
@@ -276,23 +276,23 @@ static const char *ass_split_section(ASSSplitContext *ctx, const char *buf)
if
(
section
->
format_header
&&
!
order
)
{
len
=
strlen
(
section
->
format_header
);
if
(
buf
[
len
]
==
':'
&&
!
strncmp
(
buf
,
section
->
format_header
,
len
))
{
buf
+=
len
+
1
;
while
(
!
is_eol
(
*
buf
))
{
buf
=
skip_space
(
buf
);
len
=
strcspn
(
buf
,
",
\r\n
"
);
if
(
!
(
tmp
=
av_realloc_array
(
order
,
(
*
number
+
1
),
sizeof
(
*
order
))))
return
NULL
;
order
=
tmp
;
order
[
*
number
]
=
-
1
;
for
(
i
=
0
;
section
->
fields
[
i
].
name
;
i
++
)
if
(
!
strncmp
(
buf
,
section
->
fields
[
i
].
name
,
len
))
{
order
[
*
number
]
=
i
;
break
;
}
(
*
number
)
++
;
buf
=
skip_space
(
buf
+
len
+
(
buf
[
len
]
==
','
));
}
ctx
->
field_order
[
ctx
->
current_section
]
=
order
;
buf
+=
len
+
1
;
while
(
!
is_eol
(
*
buf
))
{
buf
=
skip_space
(
buf
);
len
=
strcspn
(
buf
,
",
\r\n
"
);
if
(
!
(
tmp
=
av_realloc_array
(
order
,
(
*
number
+
1
),
sizeof
(
*
order
))))
return
NULL
;
order
=
tmp
;
order
[
*
number
]
=
-
1
;
for
(
i
=
0
;
section
->
fields
[
i
].
name
;
i
++
)
if
(
!
strncmp
(
buf
,
section
->
fields
[
i
].
name
,
len
))
{
order
[
*
number
]
=
i
;
break
;
}
(
*
number
)
++
;
buf
=
skip_space
(
buf
+
len
+
(
buf
[
len
]
==
','
));
}
ctx
->
field_order
[
ctx
->
current_section
]
=
order
;
goto
next_line
;
}
}
...
...
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