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
40cbad9f
Commit
40cbad9f
authored
Jun 20, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/wavpackenc: fix () in macros
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
10b8481a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
wavpackenc.c
libavcodec/wavpackenc.c
+7
-7
No files found.
libavcodec/wavpackenc.c
View file @
40cbad9f
...
...
@@ -30,17 +30,17 @@
#include "wavpack.h"
#define UPDATE_WEIGHT(weight, delta, source, result) \
if (
source && result
) { \
int32_t s = (int32_t) (
source ^ result
) >> 31; \
weight = (
delta ^ s) + (weight
- s); \
if (
(source) && (result)
) { \
int32_t s = (int32_t) (
(source) ^ (result)
) >> 31; \
weight = (
(delta) ^ s) + ((weight)
- s); \
}
#define APPLY_WEIGHT_F(weight, sample) (((((
sample & 0xffff) * weight
) >> 9) + \
(((
sample & ~0xffff) >> 9) * weight
) + 1) >> 1)
#define APPLY_WEIGHT_F(weight, sample) (((((
(sample) & 0xffff) * (weight)
) >> 9) + \
(((
(sample) & ~0xffff) >> 9) * (weight)
) + 1) >> 1)
#define APPLY_WEIGHT_I(weight, sample) ((
weight * sample
+ 512) >> 10)
#define APPLY_WEIGHT_I(weight, sample) ((
(weight) * (sample)
+ 512) >> 10)
#define APPLY_WEIGHT(weight, sample) (
sample != (short) sample
? \
#define APPLY_WEIGHT(weight, sample) (
(sample) != (short) (sample)
? \
APPLY_WEIGHT_F(weight, sample) : APPLY_WEIGHT_I (weight, sample))
#define CLEAR(destin) memset(&destin, 0, sizeof(destin));
...
...
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