projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
182d3f8
)
output example: free the muxing format context properly
author
Anton Khirnov
<anton@khirnov.net>
Tue, 24 Jun 2014 09:10:57 +0000
(11:10 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Thu, 26 Jun 2014 14:08:06 +0000
(16:08 +0200)
doc/examples/output.c
patch
|
blob
|
history
diff --git
a/doc/examples/output.c
b/doc/examples/output.c
index
7c29df1
..
0985659
100644
(file)
--- a/
doc/examples/output.c
+++ b/
doc/examples/output.c
@@
-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;
}