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
462f2876
Commit
462f2876
authored
Oct 11, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/ass_split: realign after addition of new fields
parent
3e86ead3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
51 deletions
+51
-51
ass_split.c
libavcodec/ass_split.c
+51
-51
No files found.
libavcodec/ass_split.c
View file @
462f2876
...
...
@@ -64,29 +64,29 @@ static const ASSSection ass_sections[] = {
.
size
=
sizeof
(
ASSStyle
),
.
offset
=
offsetof
(
ASS
,
styles
),
.
offset_count
=
offsetof
(
ASS
,
styles_count
),
.
fields
=
{{
"Name"
,
ASS_STR
,
offsetof
(
ASSStyle
,
name
)
},
{
"Fontname"
,
ASS_STR
,
offsetof
(
ASSStyle
,
font_name
)
},
{
"Fontsize"
,
ASS_INT
,
offsetof
(
ASSStyle
,
font_size
)
},
{
"PrimaryColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
primary_color
)
},
{
"SecondaryColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
secondary_color
)},
{
"OutlineColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
outline_color
)
},
{
"BackColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
back_color
)
},
{
"Bold"
,
ASS_INT
,
offsetof
(
ASSStyle
,
bold
)
},
{
"Italic"
,
ASS_INT
,
offsetof
(
ASSStyle
,
italic
)
},
{
"Underline"
,
ASS_INT
,
offsetof
(
ASSStyle
,
underline
)
},
{
"StrikeOut"
,
ASS_INT
,
offsetof
(
ASSStyle
,
strikeout
)
},
{
"ScaleX"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
scalex
)
},
{
"ScaleY"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
scaley
)
},
{
"Spacing"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
spacing
)
},
{
"Angle"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
angle
)
},
{
"BorderStyle"
,
ASS_INT
,
offsetof
(
ASSStyle
,
border_style
)
},
{
"Outline"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
outline
)
},
{
"Shadow"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
shadow
)
},
{
"Alignment"
,
ASS_INT
,
offsetof
(
ASSStyle
,
alignment
)
},
{
"MarginL"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_l
)
},
{
"MarginR"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_r
)
},
{
"MarginV"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_v
)
},
{
"Encoding"
,
ASS_INT
,
offsetof
(
ASSStyle
,
encoding
)
},
.
fields
=
{{
"Name"
,
ASS_STR
,
offsetof
(
ASSStyle
,
name
)
},
{
"Fontname"
,
ASS_STR
,
offsetof
(
ASSStyle
,
font_name
)
},
{
"Fontsize"
,
ASS_INT
,
offsetof
(
ASSStyle
,
font_size
)
},
{
"PrimaryColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
primary_color
)
},
{
"SecondaryColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
secondary_color
)},
{
"OutlineColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
outline_color
)
},
{
"BackColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
back_color
)
},
{
"Bold"
,
ASS_INT
,
offsetof
(
ASSStyle
,
bold
)
},
{
"Italic"
,
ASS_INT
,
offsetof
(
ASSStyle
,
italic
)
},
{
"Underline"
,
ASS_INT
,
offsetof
(
ASSStyle
,
underline
)
},
{
"StrikeOut"
,
ASS_INT
,
offsetof
(
ASSStyle
,
strikeout
)
},
{
"ScaleX"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
scalex
)
},
{
"ScaleY"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
scaley
)
},
{
"Spacing"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
spacing
)
},
{
"Angle"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
angle
)
},
{
"BorderStyle"
,
ASS_INT
,
offsetof
(
ASSStyle
,
border_style
)
},
{
"Outline"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
outline
)
},
{
"Shadow"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
shadow
)
},
{
"Alignment"
,
ASS_INT
,
offsetof
(
ASSStyle
,
alignment
)
},
{
"MarginL"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_l
)
},
{
"MarginR"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_r
)
},
{
"MarginV"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_v
)
},
{
"Encoding"
,
ASS_INT
,
offsetof
(
ASSStyle
,
encoding
)
},
{
0
},
}
},
...
...
@@ -96,24 +96,24 @@ static const ASSSection ass_sections[] = {
.
size
=
sizeof
(
ASSStyle
),
.
offset
=
offsetof
(
ASS
,
styles
),
.
offset_count
=
offsetof
(
ASS
,
styles_count
),
.
fields
=
{{
"Name"
,
ASS_STR
,
offsetof
(
ASSStyle
,
name
)
},
{
"Fontname"
,
ASS_STR
,
offsetof
(
ASSStyle
,
font_name
)
},
{
"Fontsize"
,
ASS_INT
,
offsetof
(
ASSStyle
,
font_size
)
},
{
"PrimaryColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
primary_color
)
},
{
"SecondaryColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
secondary_color
)
},
{
"TertiaryColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
outline_color
)
},
{
"BackColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
back_color
)
},
{
"Bold"
,
ASS_INT
,
offsetof
(
ASSStyle
,
bold
)
},
{
"Italic"
,
ASS_INT
,
offsetof
(
ASSStyle
,
italic
)
},
{
"BorderStyle"
,
ASS_INT
,
offsetof
(
ASSStyle
,
border_style
)
},
{
"Outline"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
outline
)
},
{
"Shadow"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
shadow
)
},
{
"Alignment"
,
ASS_ALGN
,
offsetof
(
ASSStyle
,
alignment
)
},
{
"MarginL"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_l
)
},
{
"MarginR"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_r
)
},
{
"MarginV"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_v
)
},
{
"AlphaLevel"
,
ASS_INT
,
offsetof
(
ASSStyle
,
alpha_level
)
},
{
"Encoding"
,
ASS_INT
,
offsetof
(
ASSStyle
,
encoding
)
},
.
fields
=
{{
"Name"
,
ASS_STR
,
offsetof
(
ASSStyle
,
name
)
},
{
"Fontname"
,
ASS_STR
,
offsetof
(
ASSStyle
,
font_name
)
},
{
"Fontsize"
,
ASS_INT
,
offsetof
(
ASSStyle
,
font_size
)
},
{
"PrimaryColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
primary_color
)
},
{
"SecondaryColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
secondary_color
)},
{
"TertiaryColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
outline_color
)
},
{
"BackColour"
,
ASS_COLOR
,
offsetof
(
ASSStyle
,
back_color
)
},
{
"Bold"
,
ASS_INT
,
offsetof
(
ASSStyle
,
bold
)
},
{
"Italic"
,
ASS_INT
,
offsetof
(
ASSStyle
,
italic
)
},
{
"BorderStyle"
,
ASS_INT
,
offsetof
(
ASSStyle
,
border_style
)
},
{
"Outline"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
outline
)
},
{
"Shadow"
,
ASS_FLT
,
offsetof
(
ASSStyle
,
shadow
)
},
{
"Alignment"
,
ASS_ALGN
,
offsetof
(
ASSStyle
,
alignment
)
},
{
"MarginL"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_l
)
},
{
"MarginR"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_r
)
},
{
"MarginV"
,
ASS_INT
,
offsetof
(
ASSStyle
,
margin_v
)
},
{
"AlphaLevel"
,
ASS_INT
,
offsetof
(
ASSStyle
,
alpha_level
)
},
{
"Encoding"
,
ASS_INT
,
offsetof
(
ASSStyle
,
encoding
)
},
{
0
},
}
},
...
...
@@ -123,16 +123,16 @@ static const ASSSection ass_sections[] = {
.
size
=
sizeof
(
ASSDialog
),
.
offset
=
offsetof
(
ASS
,
dialogs
),
.
offset_count
=
offsetof
(
ASS
,
dialogs_count
),
.
fields
=
{{
"Layer"
,
ASS_INT
,
offsetof
(
ASSDialog
,
layer
)
},
{
"Start"
,
ASS_TIMESTAMP
,
offsetof
(
ASSDialog
,
start
)
},
{
"End"
,
ASS_TIMESTAMP
,
offsetof
(
ASSDialog
,
end
)
},
{
"Style"
,
ASS_STR
,
offsetof
(
ASSDialog
,
style
)
},
{
"Name"
,
ASS_STR
,
offsetof
(
ASSDialog
,
name
)
},
{
"MarginL"
,
ASS_INT
,
offsetof
(
ASSDialog
,
margin_l
)
},
{
"MarginR"
,
ASS_INT
,
offsetof
(
ASSDialog
,
margin_r
)
},
{
"MarginV"
,
ASS_INT
,
offsetof
(
ASSDialog
,
margin_v
)
},
{
"Effect"
,
ASS_STR
,
offsetof
(
ASSDialog
,
effect
)
},
{
"Text"
,
ASS_STR
,
offsetof
(
ASSDialog
,
text
)
},
.
fields
=
{{
"Layer"
,
ASS_INT
,
offsetof
(
ASSDialog
,
layer
)
},
{
"Start"
,
ASS_TIMESTAMP
,
offsetof
(
ASSDialog
,
start
)
},
{
"End"
,
ASS_TIMESTAMP
,
offsetof
(
ASSDialog
,
end
)
},
{
"Style"
,
ASS_STR
,
offsetof
(
ASSDialog
,
style
)
},
{
"Name"
,
ASS_STR
,
offsetof
(
ASSDialog
,
name
)
},
{
"MarginL"
,
ASS_INT
,
offsetof
(
ASSDialog
,
margin_l
)
},
{
"MarginR"
,
ASS_INT
,
offsetof
(
ASSDialog
,
margin_r
)
},
{
"MarginV"
,
ASS_INT
,
offsetof
(
ASSDialog
,
margin_v
)
},
{
"Effect"
,
ASS_STR
,
offsetof
(
ASSDialog
,
effect
)
},
{
"Text"
,
ASS_STR
,
offsetof
(
ASSDialog
,
text
)
},
{
0
},
}
},
...
...
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