tools/uncoded_frame: Use avio_closep() to avoid leaving stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Jan 2015 14:46:13 +0000 (15:46 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Jan 2015 14:55:07 +0000 (15:55 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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);
             }
         }