aboutsummaryrefslogtreecommitdiffstats
path: root/tools/uncoded_frame.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-09 15:46:13 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-09 15:55:07 +0100
commit323355413dbe576dada9919535c7b72f2d9a66b4 (patch)
treef0fefb666db28c033e581cd73dcdf337f48cf17a /tools/uncoded_frame.c
parentef3a6a48b56dce552f4bc8b60403d2d53484c2f8 (diff)
downloadffmpeg-323355413dbe576dada9919535c7b72f2d9a66b4.tar.gz
tools/uncoded_frame: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'tools/uncoded_frame.c')
-rw-r--r--tools/uncoded_frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/uncoded_frame.c b/tools/uncoded_frame.c
index 53e71eacbf..3ca2ba4bbe 100644
--- a/tools/uncoded_frame.c
+++ b/tools/uncoded_frame.c
@@ -269,7 +269,7 @@ fail:
st = &streams[i];
if (st->mux) {
if (st->mux->pb)
- avio_close(st->mux->pb);
+ avio_closep(&st->mux->pb);
avformat_free_context(st->mux);
}
}