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
c62d83a5
Commit
c62d83a5
authored
Feb 26, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_compand: more cosmetics from libavfilter/af_compand_fork.c
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
05412f4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
af_compand.c
libavfilter/af_compand.c
+6
-5
No files found.
libavfilter/af_compand.c
View file @
c62d83a5
...
...
@@ -32,8 +32,8 @@
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "avfilter.h"
#include "audio.h"
#include "avfilter.h"
#include "internal.h"
typedef
struct
ChanParam
{
...
...
@@ -49,10 +49,10 @@ typedef struct CompandSegment {
typedef
struct
CompandContext
{
const
AVClass
*
class
;
int
nb_segments
;
char
*
attacks
,
*
decays
,
*
points
;
CompandSegment
*
segments
;
ChanParam
*
channels
;
int
nb_segments
;
double
in_min_lin
;
double
out_min_lin
;
double
curve_dB
;
...
...
@@ -323,9 +323,9 @@ static int config_output(AVFilterLink *outlink)
CompandContext
*
s
=
ctx
->
priv
;
const
int
sample_rate
=
outlink
->
sample_rate
;
double
radius
=
s
->
curve_dB
*
M_LN10
/
20
.
0
;
int
nb_attacks
,
nb_decays
,
nb_points
;
char
*
p
,
*
saveptr
=
NULL
;
char
*
p
,
*
saveptr
=
NULL
;
const
int
channels
=
outlink
->
channels
;
int
nb_attacks
,
nb_decays
,
nb_points
;
int
new_nb_items
,
num
;
int
i
;
int
err
;
...
...
@@ -341,7 +341,8 @@ static int config_output(AVFilterLink *outlink)
}
if
(
nb_attacks
>
channels
||
nb_decays
>
channels
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Number of attacks/decays bigger than number of channels.
\n
"
);
av_log
(
ctx
,
AV_LOG_ERROR
,
"Number of attacks/decays bigger than number of channels.
\n
"
);
return
AVERROR
(
EINVAL
);
}
...
...
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