Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
c65b1f6a
Commit
c65b1f6a
authored
Sep 28, 2017
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec: ttml: fix region percent origin
parent
d9e35d47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
modules/codec/ttml/substtml.c
modules/codec/ttml/substtml.c
+9
-2
No files found.
modules/codec/ttml/substtml.c
View file @
c65b1f6a
...
...
@@ -328,7 +328,10 @@ static void FillRegionStyle( const char *psz_attr, const char *psz_val,
p_region
->
updt
.
origin
.
x
=
atoi
(
psz_token
);
if
(
psz_percent_sign
!=
NULL
&&
psz_percent_sign
<
psz_separator
)
p_region
->
updt
.
flags
|=
UPDT_REGION_EXTENT_X_IS_PERCENTILE
;
{
p_region
->
updt
.
origin
.
x
/=
100
.
0
;
p_region
->
updt
.
flags
|=
UPDT_REGION_ORIGIN_X_IS_PERCENTILE
;
}
while
(
isspace
(
*
psz_separator
)
)
psz_separator
++
;
...
...
@@ -337,7 +340,11 @@ static void FillRegionStyle( const char *psz_attr, const char *psz_val,
p_region
->
updt
.
origin
.
y
=
atoi
(
psz_token
);
if
(
psz_percent_sign
!=
NULL
)
p_region
->
updt
.
flags
|=
UPDT_REGION_EXTENT_Y_IS_PERCENTILE
;
{
p_region
->
updt
.
origin
.
y
/=
100
.
0
;
p_region
->
updt
.
flags
|=
UPDT_REGION_ORIGIN_Y_IS_PERCENTILE
;
}
p_region
->
updt
.
align
=
SUBPICTURE_ALIGN_TOP
|
SUBPICTURE_ALIGN_LEFT
;
}
}
...
...
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