[FFmpeg-cvslog] doc/examples/transcoding: Use avio_closep() in examples as it avoids leaving stale pointers
Michael Niedermayer
git at videolan.org
Thu Jan 8 05:29:52 CET 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jan 8 05:10:55 2015 +0100| [a85f033149a680cff101caea82d95577e4bd10ca] | committer: Michael Niedermayer
doc/examples/transcoding: Use avio_closep() in examples as it avoids leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a85f033149a680cff101caea82d95577e4bd10ca
---
doc/examples/transcoding.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/examples/transcoding.c b/doc/examples/transcoding.c
index 5572461..2a8220e 100644
--- a/doc/examples/transcoding.c
+++ b/doc/examples/transcoding.c
@@ -573,7 +573,7 @@ end:
av_free(filter_ctx);
avformat_close_input(&ifmt_ctx);
if (ofmt_ctx && !(ofmt_ctx->oformat->flags & AVFMT_NOFILE))
- avio_close(ofmt_ctx->pb);
+ avio_closep(&ofmt_ctx->pb);
avformat_free_context(ofmt_ctx);
if (ret < 0)
More information about the ffmpeg-cvslog
mailing list