mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02:00
tools/uncoded_frame: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user