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
f24b2e64
Commit
f24b2e64
authored
May 14, 2018
by
Zhao Zhili
Committed by
Michael Niedermayer
May 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/filtering_video: fix memory leak
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
c0a845f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
filtering_video.c
doc/examples/filtering_video.c
+9
-6
No files found.
doc/examples/filtering_video.c
View file @
f24b2e64
...
...
@@ -211,18 +211,21 @@ int main(int argc, char **argv)
{
int
ret
;
AVPacket
packet
;
AVFrame
*
frame
=
av_frame_alloc
()
;
AVFrame
*
filt_frame
=
av_frame_alloc
()
;
AVFrame
*
frame
;
AVFrame
*
filt_frame
;
if
(
!
frame
||
!
filt_frame
)
{
perror
(
"Could not allocate frame"
);
exit
(
1
);
}
if
(
argc
!=
2
)
{
fprintf
(
stderr
,
"Usage: %s file
\n
"
,
argv
[
0
]);
exit
(
1
);
}
frame
=
av_frame_alloc
();
filt_frame
=
av_frame_alloc
();
if
(
!
frame
||
!
filt_frame
)
{
perror
(
"Could not allocate frame"
);
exit
(
1
);
}
if
((
ret
=
open_input_file
(
argv
[
1
]))
<
0
)
goto
end
;
if
((
ret
=
init_filters
(
filter_descr
))
<
0
)
...
...
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