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
ea8efc95
Commit
ea8efc95
authored
Mar 18, 2017
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu/mathematics: split closing bracket out of ifdefery
parent
1e1513d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
mathematics.c
libavutil/mathematics.c
+1
-2
No files found.
libavutil/mathematics.c
View file @
ea8efc95
...
...
@@ -115,7 +115,6 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
if
(
t1
>
INT64_MAX
)
return
INT64_MIN
;
return
t1
;
}
#else
/* reference code doing (a*b + r) / c, requires libavutil/integer.h */
AVInteger
ai
;
...
...
@@ -123,8 +122,8 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd)
ai
=
av_add_i
(
ai
,
av_int2i
(
r
));
return
av_i2int
(
av_div_i
(
ai
,
av_int2i
(
c
)));
}
#endif
}
}
int64_t
av_rescale
(
int64_t
a
,
int64_t
b
,
int64_t
c
)
...
...
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