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
5e02ff3e
Commit
5e02ff3e
authored
Feb 26, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_compand: switch defaults to libavfilter/af_compand_fork.c
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
619d6b8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
af_compand.c
libavfilter/af_compand.c
+3
-9
No files found.
libavfilter/af_compand.c
View file @
5e02ff3e
...
@@ -72,9 +72,9 @@ typedef struct CompandContext {
...
@@ -72,9 +72,9 @@ typedef struct CompandContext {
#define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
#define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
static
const
AVOption
compand_options
[]
=
{
static
const
AVOption
compand_options
[]
=
{
{
"attacks"
,
"set time over which increase of volume is determined"
,
OFFSET
(
attacks
),
AV_OPT_TYPE_STRING
,
{
.
str
=
NULL
},
0
,
0
,
A
},
{
"attacks"
,
"set time over which increase of volume is determined"
,
OFFSET
(
attacks
),
AV_OPT_TYPE_STRING
,
{
.
str
=
"0.3"
},
0
,
0
,
A
},
{
"decays"
,
"set time over which decrease of volume is determined"
,
OFFSET
(
decays
),
AV_OPT_TYPE_STRING
,
{
.
str
=
NULL
},
0
,
0
,
A
},
{
"decays"
,
"set time over which decrease of volume is determined"
,
OFFSET
(
decays
),
AV_OPT_TYPE_STRING
,
{
.
str
=
"0.8"
},
0
,
0
,
A
},
{
"points"
,
"set points of transfer function"
,
OFFSET
(
points
),
AV_OPT_TYPE_STRING
,
{
.
str
=
NULL
},
0
,
0
,
A
},
{
"points"
,
"set points of transfer function"
,
OFFSET
(
points
),
AV_OPT_TYPE_STRING
,
{
.
str
=
"-70/-70|-60/-20"
},
0
,
0
,
A
},
{
"soft-knee"
,
"set soft-knee"
,
OFFSET
(
curve_dB
),
AV_OPT_TYPE_DOUBLE
,
{
.
dbl
=
0
.
01
},
0
.
01
,
900
,
A
},
{
"soft-knee"
,
"set soft-knee"
,
OFFSET
(
curve_dB
),
AV_OPT_TYPE_DOUBLE
,
{
.
dbl
=
0
.
01
},
0
.
01
,
900
,
A
},
{
"gain"
,
"set output gain"
,
OFFSET
(
gain_dB
),
AV_OPT_TYPE_DOUBLE
,
{
.
dbl
=
0
},
-
900
,
900
,
A
},
{
"gain"
,
"set output gain"
,
OFFSET
(
gain_dB
),
AV_OPT_TYPE_DOUBLE
,
{
.
dbl
=
0
},
-
900
,
900
,
A
},
{
"volume"
,
"set initial volume"
,
OFFSET
(
initial_volume
),
AV_OPT_TYPE_DOUBLE
,
{
.
dbl
=
0
},
-
900
,
0
,
A
},
{
"volume"
,
"set initial volume"
,
OFFSET
(
initial_volume
),
AV_OPT_TYPE_DOUBLE
,
{
.
dbl
=
0
},
-
900
,
0
,
A
},
...
@@ -88,12 +88,6 @@ static av_cold int init(AVFilterContext *ctx)
...
@@ -88,12 +88,6 @@ static av_cold int init(AVFilterContext *ctx)
{
{
CompandContext
*
s
=
ctx
->
priv
;
CompandContext
*
s
=
ctx
->
priv
;
s
->
pts
=
AV_NOPTS_VALUE
;
s
->
pts
=
AV_NOPTS_VALUE
;
if
(
!
s
->
attacks
||
!
s
->
decays
||
!
s
->
points
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Missing attacks and/or decays and/or points.
\n
"
);
return
AVERROR
(
EINVAL
);
}
return
0
;
return
0
;
}
}
...
...
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