summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-08 05:09:06 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-08 05:28:15 +0100
commit1d2410639d9da4e7711a79f03d1ce512195aff88 (patch)
tree58f79e13809f7957cd688f1e980bf02455f20386 /doc
parent919e038a95fdebefb0ec76a602c0d61758ad0d8d (diff)
downloadffmpeg-streaming-1d2410639d9da4e7711a79f03d1ce512195aff88.zip
ffmpeg-streaming-1d2410639d9da4e7711a79f03d1ce512195aff88.tar.gz
doc/examples/muxing: Use avio_closep() in examples as it avoids leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc')
-rw-r--r--doc/examples/muxing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index 3ec2eb6..8b0ea60 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -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);
OpenPOWER on IntegriCloud