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
f6f6857c
Commit
f6f6857c
authored
Jan 14, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_anequalizer: check if frame clone is set
parent
80c4c336
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
af_anequalizer.c
libavfilter/af_anequalizer.c
+6
-1
No files found.
libavfilter/af_anequalizer.c
View file @
f6f6857c
...
...
@@ -733,13 +733,18 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
}
if
(
s
->
draw_curves
)
{
AVFrame
*
clone
;
const
int64_t
pts
=
buf
->
pts
+
av_rescale_q
(
buf
->
nb_samples
,
(
AVRational
){
1
,
inlink
->
sample_rate
},
outlink
->
time_base
);
int
ret
;
s
->
video
->
pts
=
pts
;
ret
=
ff_filter_frame
(
ctx
->
outputs
[
1
],
av_frame_clone
(
s
->
video
));
clone
=
av_frame_clone
(
s
->
video
);
if
(
!
clone
)
return
AVERROR
(
ENOMEM
);
ret
=
ff_filter_frame
(
ctx
->
outputs
[
1
],
clone
);
if
(
ret
<
0
)
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