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
b67af536
Commit
b67af536
authored
Oct 10, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_random: fix crash
Fixes #8235.
parent
f6df99db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
vf_random.c
libavfilter/vf_random.c
+5
-0
No files found.
libavfilter/vf_random.c
View file @
b67af536
...
...
@@ -97,8 +97,13 @@ static int request_frame(AVFilterLink *outlink)
ret
=
ff_request_frame
(
ctx
->
inputs
[
0
]);
next:
if
(
ret
==
AVERROR_EOF
&&
!
ctx
->
is_disabled
&&
s
->
nb_frames
>
0
)
{
AVFrame
*
out
=
s
->
frames
[
s
->
nb_frames
-
1
];
if
(
!
out
)
{
s
->
nb_frames
--
;
goto
next
;
}
out
->
pts
=
s
->
pts
[
s
->
flush_idx
++
];
ret
=
ff_filter_frame
(
outlink
,
out
);
s
->
frames
[
s
->
nb_frames
-
1
]
=
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