[FFmpeg-cvslog] tools/uncoded_frame: Use avio_closep() to avoid leaving stale pointers in memory

Michael Niedermayer git at videolan.org
Fri Jan 9 16:55:01 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jan  9 15:46:13 2015 +0100| [323355413dbe576dada9919535c7b72f2d9a66b4] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=323355413dbe576dada9919535c7b72f2d9a66b4
---

 tools/uncoded_frame.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/uncoded_frame.c b/tools/uncoded_frame.c
index 53e71ea..3ca2ba4 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);
             }
         }



More information about the ffmpeg-cvslog mailing list