diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-01-09 13:39:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-01-09 13:39:06 +0100 |
commit | 2959a612326c5e473518eb91c4b66020468a11fe (patch) | |
tree | e5b279f8f7a377bf74e33dbc8aba1b0386191a4e | |
parent | b88e80589bd11ef935a5e9dab53d4edb00de16e4 (diff) | |
download | ffmpeg-2959a612326c5e473518eb91c4b66020468a11fe.tar.gz |
avformat/utils: Use avio_closep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 75819570e9..cb8b42b9c9 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; |