ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Fri Jan 9 13:39:06 2015 +0100| [2959a612326c5e473518eb91c4b66020468a11fe] | committer: Michael Niedermayer
avformat/utils: Use avio_closep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2959a612326c5e473518eb91c4b66020468a11fe --- libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 7581957..cb8b42b 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -496,7 +496,7 @@ fail: ff_id3v2_free_extra_meta(&id3v2_extra_meta); av_dict_free(&tmp); if (s->pb && !(s->flags & AVFMT_FLAG_CUSTOM_IO)) - avio_close(s->pb); + avio_closep(&s->pb); avformat_free_context(s); *ps = NULL; return ret; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog