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
a95e6838
Commit
a95e6838
authored
Apr 05, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/noise: use standard options parsing
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
659672f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
vf_noise.c
libavfilter/vf_noise.c
+3
-6
No files found.
libavfilter/vf_noise.c
View file @
a95e6838
...
...
@@ -169,12 +169,6 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
NoiseContext
*
n
=
ctx
->
priv
;
int
ret
,
i
;
n
->
class
=
&
noise_class
;
av_opt_set_defaults
(
n
);
if
((
ret
=
av_set_options_string
(
n
,
args
,
"="
,
":"
))
<
0
)
return
ret
;
for
(
i
=
0
;
i
<
4
;
i
++
)
{
if
(
n
->
all
.
seed
>=
0
)
n
->
param
[
i
].
seed
=
n
->
all
.
seed
;
...
...
@@ -355,6 +349,8 @@ static const AVFilterPad noise_outputs[] = {
{
NULL
}
};
static
const
char
*
const
shorthand
[]
=
{
NULL
};
AVFilter
avfilter_vf_noise
=
{
.
name
=
"noise"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Add noise."
),
...
...
@@ -365,4 +361,5 @@ AVFilter avfilter_vf_noise = {
.
inputs
=
noise_inputs
,
.
outputs
=
noise_outputs
,
.
priv_class
=
&
noise_class
,
.
shorthand
=
shorthand
,
};
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