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
2f23a8ab
Commit
2f23a8ab
authored
Jun 06, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libavutil/mathematics: use av_assert()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
317ca0d3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mathematics.c
libavutil/mathematics.c
+4
-4
No files found.
libavutil/mathematics.c
View file @
2f23a8ab
...
...
@@ -23,11 +23,11 @@
* miscellaneous math routines and tables
*/
#include <assert.h>
#include <stdint.h>
#include <limits.h>
#include "mathematics.h"
#include "libavutil/common.h"
#include "avassert.h"
const
uint8_t
ff_sqrt_tab
[
256
]
=
{
0
,
16
,
23
,
28
,
32
,
36
,
40
,
43
,
46
,
48
,
51
,
54
,
56
,
58
,
60
,
62
,
64
,
66
,
68
,
70
,
72
,
74
,
76
,
77
,
79
,
80
,
82
,
84
,
85
,
87
,
88
,
90
,
...
...
@@ -77,9 +77,9 @@ int64_t av_gcd(int64_t a, int64_t b){
int64_t
av_rescale_rnd
(
int64_t
a
,
int64_t
b
,
int64_t
c
,
enum
AVRounding
rnd
){
int64_t
r
=
0
;
a
ssert
(
c
>
0
);
a
ssert
(
b
>=
0
);
a
ssert
((
unsigned
)
rnd
<=
5
&&
rnd
!=
4
);
a
v_assert2
(
c
>
0
);
a
v_assert2
(
b
>=
0
);
a
v_assert2
((
unsigned
)
rnd
<=
5
&&
rnd
!=
4
);
if
(
a
<
0
&&
a
!=
INT64_MIN
)
return
-
av_rescale_rnd
(
-
a
,
b
,
c
,
rnd
^
((
rnd
>>
1
)
&
1
));
...
...
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