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
a5864e9a
Commit
a5864e9a
authored
Jun 24, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output example: free the muxing format context properly
parent
182d3f82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
output.c
doc/examples/output.c
+1
-7
No files found.
doc/examples/output.c
View file @
a5864e9a
...
...
@@ -549,18 +549,12 @@ int main(int argc, char **argv)
if
(
have_audio
)
close_stream
(
oc
,
&
audio_st
);
/* Free the streams. */
for
(
i
=
0
;
i
<
oc
->
nb_streams
;
i
++
)
{
av_freep
(
&
oc
->
streams
[
i
]
->
codec
);
av_freep
(
&
oc
->
streams
[
i
]);
}
if
(
!
(
fmt
->
flags
&
AVFMT_NOFILE
))
/* Close the output file. */
avio_close
(
oc
->
pb
);
/* free the stream */
av
_free
(
oc
);
av
format_free_context
(
oc
);
return
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