diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-08 05:10:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-08 05:29:10 +0100 |
commit | a85f033149a680cff101caea82d95577e4bd10ca (patch) | |
tree | 75eec6e00dd9030acd57299de60ff71e2a6e0500 /doc | |
parent | a63c17cec723542a93726fd299187d4c71b24c25 (diff) | |
download | ffmpeg-a85f033149a680cff101caea82d95577e4bd10ca.tar.gz |
doc/examples/transcoding: 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/transcoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/transcoding.c b/doc/examples/transcoding.c index 5572461616..2a8220eefa 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) |