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
28bf1115
Commit
28bf1115
authored
Jun 18, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/wavpack: fix () in macros
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
d9a61ae3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
wavpack.c
libavcodec/wavpack.c
+1
-1
wavpack.h
libavcodec/wavpack.h
+2
-2
No files found.
libavcodec/wavpack.c
View file @
28bf1115
...
@@ -83,7 +83,7 @@ typedef struct WavpackContext {
...
@@ -83,7 +83,7 @@ typedef struct WavpackContext {
int
ch_offset
;
int
ch_offset
;
}
WavpackContext
;
}
WavpackContext
;
#define LEVEL_DECAY(a) ((
a
+ 0x80) >> 8)
#define LEVEL_DECAY(a) ((
(a)
+ 0x80) >> 8)
static
av_always_inline
int
get_tail
(
GetBitContext
*
gb
,
int
k
)
static
av_always_inline
int
get_tail
(
GetBitContext
*
gb
,
int
k
)
{
{
...
...
libavcodec/wavpack.h
View file @
28bf1115
...
@@ -99,8 +99,8 @@ typedef struct WvChannel {
...
@@ -99,8 +99,8 @@ typedef struct WvChannel {
// macros for manipulating median values
// macros for manipulating median values
#define GET_MED(n) ((c->median[n] >> 4) + 1)
#define GET_MED(n) ((c->median[n] >> 4) + 1)
#define DEC_MED(n) c->median[n] -= ((c->median[n] + (128 >>
n) - 2) / (128 >> n
)) * 2
#define DEC_MED(n) c->median[n] -= ((c->median[n] + (128 >>
(n)) - 2) / (128 >> (n)
)) * 2
#define INC_MED(n) c->median[n] += ((c->median[n] + (128 >>
n) ) / (128 >> n
)) * 5
#define INC_MED(n) c->median[n] += ((c->median[n] + (128 >>
(n)) ) / (128 >> (n)
)) * 5
// macros for applying weight
// macros for applying weight
#define UPDATE_WEIGHT_CLIP(weight, delta, samples, in) \
#define UPDATE_WEIGHT_CLIP(weight, delta, samples, in) \
...
...
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