From 1d2410639d9da4e7711a79f03d1ce512195aff88 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 8 Jan 2015 05:09:06 +0100 Subject: doc/examples/muxing: Use avio_closep() in examples as it avoids leaving stale pointers Signed-off-by: Michael Niedermayer --- doc/examples/muxing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/examples/muxing.c') diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c index 3ec2eb66d0..8b0ea60bb3 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); -- cgit v1.2.3