Commit 32335541 authored by Michael Niedermayer's avatar Michael Niedermayer

tools/uncoded_frame: Use avio_closep() to avoid leaving stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ef3a6a48
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment