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
cfde7395
Commit
cfde7395
authored
May 16, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/aevalsrc: remove limitation on the number of channels
parent
47ef2612
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
asrc_aevalsrc.c
libavfilter/asrc_aevalsrc.c
+1
-7
No files found.
libavfilter/asrc_aevalsrc.c
View file @
cfde7395
...
...
@@ -100,12 +100,6 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque)
buf
=
args1
;
i
=
0
;
while
(
expr
=
av_strtok
(
buf
,
":"
,
&
bufptr
))
{
if
(
i
>=
8
)
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"More than 8 expressions provided, unsupported.
\n
"
);
ret
=
AVERROR
(
EINVAL
);
return
ret
;
}
ret
=
av_expr_parse
(
&
eval
->
expr
[
i
],
expr
,
var_names
,
NULL
,
NULL
,
NULL
,
NULL
,
0
,
ctx
);
if
(
ret
<
0
)
...
...
@@ -214,7 +208,7 @@ static int request_frame(AVFilterLink *outlink)
eval
->
var_values
[
VAR_T
]
=
eval
->
var_values
[
VAR_N
]
*
(
double
)
1
/
eval
->
sample_rate
;
for
(
j
=
0
;
j
<
eval
->
nb_channels
;
j
++
)
{
*
((
double
*
)
samplesref
->
data
[
j
]
+
i
)
=
*
((
double
*
)
samplesref
->
extended_
data
[
j
]
+
i
)
=
av_expr_eval
(
eval
->
expr
[
j
],
eval
->
var_values
,
NULL
);
}
}
...
...
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