tools/uncoded_frame: Use avio_closep() to avoid leaving stale pointers in memory
[ffmpeg.git] / tools / uncoded_frame.c
index 53e71ea..3ca2ba4 100644 (file)
@@ -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);
             }
         }