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
d580c7a7
Commit
d580c7a7
authored
Jan 14, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/avf_ahistogram: check if frame clone is set
parent
928020b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
avf_ahistogram.c
libavfilter/avf_ahistogram.c
+6
-1
No files found.
libavfilter/avf_ahistogram.c
View file @
d580c7a7
...
...
@@ -163,6 +163,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
const
int
w
=
s
->
w
;
int
c
,
y
,
n
,
p
,
bin
;
uint64_t
acmax
=
1
;
AVFrame
*
clone
;
if
(
!
s
->
out
||
s
->
out
->
width
!=
outlink
->
w
||
s
->
out
->
height
!=
outlink
->
h
)
{
...
...
@@ -363,7 +364,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
s
->
ypos
=
H
;
}
return
ff_filter_frame
(
outlink
,
av_frame_clone
(
s
->
out
));
clone
=
av_frame_clone
(
s
->
out
);
if
(
!
clone
)
return
AVERROR
(
ENOMEM
);
return
ff_filter_frame
(
outlink
,
clone
);
}
static
int
activate
(
AVFilterContext
*
ctx
)
...
...
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