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
466cb4ed
Commit
466cb4ed
authored
Feb 11, 2019
by
Jan Ekström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/libaribb24: use integer math to calculate font scaling
parent
1ed9e8e9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
libaribb24.c
libavcodec/libaribb24.c
+5
-5
No files found.
libavcodec/libaribb24.c
View file @
466cb4ed
...
...
@@ -249,11 +249,11 @@ static int libaribb24_handle_regions(AVCodecContext *avctx, AVSubtitle *sub)
// font size
if
(
region
->
i_fontwidth
!=
profile_font_size
||
region
->
i_fontheight
!=
profile_font_size
)
{
av_bprintf
(
&
buf
,
"{
\\
fscx%
d
\\
fscy%d
}"
,
(
int
)
round
(((
double
)
region
->
i_fontwidth
/
(
double
)
profile_font_size
)
*
100
),
(
int
)
round
(((
double
)
region
->
i_fontheight
/
(
double
)
profile_font_size
)
*
100
));
av_bprintf
(
&
buf
,
"{
\\
fscx%
"
PRId64
"
\\
fscy%"
PRId64
"
}"
,
av_rescale
(
region
->
i_fontwidth
,
100
,
profile_font_size
),
av_rescale
(
region
->
i_fontheight
,
100
,
profile_font_size
));
}
// TODO: positioning
...
...
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