From 323355413dbe576dada9919535c7b72f2d9a66b4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 9 Jan 2015 15:46:13 +0100 Subject: [PATCH] tools/uncoded_frame: Use avio_closep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer --- tools/uncoded_frame.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }