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
b0e1557f
Commit
b0e1557f
authored
May 16, 2012
by
Michael Bradshaw
Committed by
Michael Niedermayer
May 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnings about int64 to int32 conversion
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
65e63072
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common.h
libavutil/common.h
+2
-2
No files found.
libavutil/common.h
View file @
b0e1557f
...
...
@@ -171,7 +171,7 @@ static av_always_inline av_const int16_t av_clip_int16_c(int a)
static
av_always_inline
av_const
int32_t
av_clipl_int32_c
(
int64_t
a
)
{
if
((
a
+
0x80000000u
)
&
~
UINT64_C
(
0xFFFFFFFF
))
return
(
a
>>
63
)
^
0x7FFFFFFF
;
else
return
a
;
else
return
(
int32_t
)
a
;
}
/**
...
...
@@ -230,7 +230,7 @@ static av_always_inline av_const int av_popcount_c(uint32_t x)
*/
static
av_always_inline
av_const
int
av_popcount64_c
(
uint64_t
x
)
{
return
av_popcount
(
x
)
+
av_popcount
(
x
>>
32
);
return
av_popcount
(
(
uint32_t
)
x
)
+
av_popcount
(
x
>>
32
);
}
#define MKTAG(a,b,c,d) ((a) | ((b) << 8) | ((c) << 16) | ((unsigned)(d) << 24))
...
...
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