[FFmpeg-cvslog] ff_id3v2_free_extra_meta: set the pointer pointing to extra_meta to NULL

Peter Ross git at videolan.org
Sat Apr 19 13:40:59 CEST 2014


ffmpeg | branch: release/2.2 | Peter Ross <pross at xvid.org> | Sat Apr 19 12:12:00 2014 +1000| [b45cd17d291d3e72ad6dd58f758cd0d3544b2522] | committer: Carl Eugen Hoyos

ff_id3v2_free_extra_meta: set the pointer pointing to extra_meta to NULL

Fixes ticket #3530.

Signed-off-by: Peter Ross <pross at xvid.org>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit c94305ae23318c8956a30485cd5642829f4f16a9)

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

 libavformat/id3v2.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 3cd23c6..efaf768 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -935,6 +935,8 @@ void ff_id3v2_free_extra_meta(ID3v2ExtraMeta **extra_meta)
         av_freep(&current);
         current = next;
     }
+
+    *extra_meta = NULL;
 }
 
 int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)



More information about the ffmpeg-cvslog mailing list