ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Thu Jan 8 05:09:06 2015 +0100| [1d2410639d9da4e7711a79f03d1ce512195aff88] | committer: Michael Niedermayer
doc/examples/muxing: Use avio_closep() in examples as it avoids leaving stale pointers Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1d2410639d9da4e7711a79f03d1ce512195aff88 --- doc/examples/muxing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog