ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Thu Jan 8 05:10:39 2015 +0100| [a63c17cec723542a93726fd299187d4c71b24c25] | committer: Michael Niedermayer
idoc/examples/remuxing: 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=a63c17cec723542a93726fd299187d4c71b24c25 --- doc/examples/remuxing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/remuxing.c b/doc/examples/remuxing.c index 39d9dee..e9758a8 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) { _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog