aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2014-04-19 12:12:00 +1000
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-04-19 13:31:12 +0200
commitcaeed48982a17e1cbf5857eb69b1cb3b2a64a6e2 (patch)
treed9b811fac4495e37015514bf991e95ac33e2c3c2
parent353f79defc1d0cd5ae86eb21e2d7917b04fbfeee (diff)
downloadffmpeg-caeed48982a17e1cbf5857eb69b1cb3b2a64a6e2.tar.gz
ff_id3v2_free_extra_meta: set the pointer pointing to extra_meta to NULL
Fixes ticket #3530. Signed-off-by: Peter Ross <pross@xvid.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit c94305ae23318c8956a30485cd5642829f4f16a9)
-rw-r--r--libavformat/id3v2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 4bc76a321c..86c5cb3196 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -860,6 +860,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)