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); } }