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
2174a315
Commit
2174a315
authored
Feb 09, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_afffilt: fix crash on error
parent
283e7557
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
af_afftfilt.c
libavfilter/af_afftfilt.c
+7
-4
No files found.
libavfilter/af_afftfilt.c
View file @
2174a315
...
...
@@ -176,13 +176,13 @@ static int config_input(AVFilterLink *inlink)
ret
=
av_expr_parse
(
&
s
->
real
[
ch
],
arg
?
arg
:
last_expr
,
var_names
,
NULL
,
NULL
,
func2_names
,
func2
,
0
,
ctx
);
if
(
ret
<
0
)
break
;
goto
fail
;
if
(
arg
)
last_expr
=
arg
;
s
->
nb_exprs
++
;
}
av_free
(
args
);
av_free
p
(
&
args
);
args
=
av_strdup
(
s
->
img_str
?
s
->
img_str
:
s
->
real_str
);
if
(
!
args
)
...
...
@@ -196,12 +196,12 @@ static int config_input(AVFilterLink *inlink)
ret
=
av_expr_parse
(
&
s
->
imag
[
ch
],
arg
?
arg
:
last_expr
,
var_names
,
NULL
,
NULL
,
func2_names
,
func2
,
0
,
ctx
);
if
(
ret
<
0
)
break
;
goto
fail
;
if
(
arg
)
last_expr
=
arg
;
}
av_free
(
args
);
av_free
p
(
&
args
);
s
->
fifo
=
av_audio_fifo_alloc
(
inlink
->
format
,
inlink
->
channels
,
s
->
window_size
);
if
(
!
s
->
fifo
)
...
...
@@ -223,6 +223,9 @@ static int config_input(AVFilterLink *inlink)
if
(
!
s
->
buffer
)
return
AVERROR
(
ENOMEM
);
fail:
av_freep
(
&
args
);
return
ret
;
}
...
...
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