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
1a0c584a
Commit
1a0c584a
authored
Oct 16, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/f_reverse: fix memory leaks
Fixes #8283
parent
b0bfa369
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
f_reverse.c
libavfilter/f_reverse.c
+7
-0
No files found.
libavfilter/f_reverse.c
View file @
1a0c584a
...
...
@@ -58,6 +58,11 @@ static av_cold void uninit(AVFilterContext *ctx)
{
ReverseContext
*
s
=
ctx
->
priv
;
while
(
s
->
nb_frames
>
0
)
{
av_frame_free
(
&
s
->
frames
[
s
->
nb_frames
-
1
]);
s
->
nb_frames
--
;
}
av_freep
(
&
s
->
pts
);
av_freep
(
&
s
->
frames
);
}
...
...
@@ -103,6 +108,7 @@ static int request_frame(AVFilterLink *outlink)
AVFrame
*
out
=
s
->
frames
[
s
->
nb_frames
-
1
];
out
->
pts
=
s
->
pts
[
s
->
flush_idx
++
];
ret
=
ff_filter_frame
(
outlink
,
out
);
s
->
frames
[
s
->
nb_frames
-
1
]
=
NULL
;
s
->
nb_frames
--
;
}
...
...
@@ -262,6 +268,7 @@ static int areverse_request_frame(AVFilterLink *outlink)
else
reverse_samples_packed
(
out
);
ret
=
ff_filter_frame
(
outlink
,
out
);
s
->
frames
[
s
->
nb_frames
-
1
]
=
NULL
;
s
->
nb_frames
--
;
}
...
...
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