Skip to content
Snippets Groups Projects
Commit 1d241063 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

doc/examples/muxing: Use avio_closep() in examples as it avoids leaving stale pointers

parent 919e038a
Branches
Tags
No related merge requests found
......@@ -661,7 +661,7 @@ int main(int argc, char **argv)
if (!(fmt->flags & AVFMT_NOFILE))
/* Close the output file. */
avio_close(oc->pb);
avio_closep(&oc->pb);
/* free the stream */
avformat_free_context(oc);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment