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
f27eb1b7
Commit
f27eb1b7
authored
Jan 05, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavu: check that assert level is defined
fix warning Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
14d50c19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
common.h
libavutil/common.h
+3
-3
No files found.
libavutil/common.h
View file @
f27eb1b7
...
...
@@ -97,7 +97,7 @@ av_const int av_log2_16bit(unsigned v);
*/
static
av_always_inline
av_const
int
av_clip_c
(
int
a
,
int
amin
,
int
amax
)
{
#if defined(HAVE_AV_CONFIG_H) && ASSERT_LEVEL >= 2
#if defined(HAVE_AV_CONFIG_H) &&
defined(ASSERT_LEVEL) &&
ASSERT_LEVEL >= 2
if
(
amin
>
amax
)
abort
();
#endif
if
(
a
<
amin
)
return
amin
;
...
...
@@ -114,7 +114,7 @@ static av_always_inline av_const int av_clip_c(int a, int amin, int amax)
*/
static
av_always_inline
av_const
int64_t
av_clip64_c
(
int64_t
a
,
int64_t
amin
,
int64_t
amax
)
{
#if defined(HAVE_AV_CONFIG_H) && ASSERT_LEVEL >= 2
#if defined(HAVE_AV_CONFIG_H) &&
defined(ASSERT_LEVEL) &&
ASSERT_LEVEL >= 2
if
(
amin
>
amax
)
abort
();
#endif
if
(
a
<
amin
)
return
amin
;
...
...
@@ -222,7 +222,7 @@ static av_always_inline int av_sat_dadd32_c(int a, int b)
*/
static
av_always_inline
av_const
float
av_clipf_c
(
float
a
,
float
amin
,
float
amax
)
{
#if defined(HAVE_AV_CONFIG_H) && ASSERT_LEVEL >= 2
#if defined(HAVE_AV_CONFIG_H) &&
defined(ASSERT_LEVEL) &&
ASSERT_LEVEL >= 2
if
(
amin
>
amax
)
abort
();
#endif
if
(
a
<
amin
)
return
amin
;
...
...
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