aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 05:10:39 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-08 05:28:59 +0100
commita63c17cec723542a93726fd299187d4c71b24c25 (patch)
tree36c32900b9aa777f46ed16909444955ff5c08eae /doc/examples
parentc61b84ccfda148c325766ee82f26f9231a893420 (diff)
downloadffmpeg-a63c17cec723542a93726fd299187d4c71b24c25.tar.gz
idoc/examples/remuxing: Use avio_closep() in examples as it avoids leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/remuxing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/remuxing.c b/doc/examples/remuxing.c
index 39d9dee862..e9758a8dcb 100644
--- a/doc/examples/remuxing.c
+++ b/doc/examples/remuxing.c
@@ -153,7 +153,7 @@ end:
/* close output */
if (ofmt_ctx && !(ofmt->flags & AVFMT_NOFILE))
- avio_close(ofmt_ctx->pb);
+ avio_closep(&ofmt_ctx->pb);
avformat_free_context(ofmt_ctx);
if (ret < 0 && ret != AVERROR_EOF) {