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
4956d0e5
Commit
4956d0e5
authored
Jun 02, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avutil/mathematics/av_add_stable: check for the common case of inc=1
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
5b7519fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mathematics.c
libavutil/mathematics.c
+2
-1
No files found.
libavutil/mathematics.c
View file @
4956d0e5
...
...
@@ -188,7 +188,8 @@ simple_round:
int64_t
av_add_stable
(
AVRational
ts_tb
,
int64_t
ts
,
AVRational
inc_tb
,
int64_t
inc
)
{
inc_tb
=
av_mul_q
(
inc_tb
,
(
AVRational
)
{
inc
,
1
});
if
(
inc
!=
1
)
inc_tb
=
av_mul_q
(
inc_tb
,
(
AVRational
)
{
inc
,
1
});
if
(
av_cmp_q
(
inc_tb
,
ts_tb
)
<
0
)
{
//increase step is too small for even 1 step to be representable
...
...
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