[FFmpeg-devel] [PATCHv2 1/2] ff_id3v2_free_extra_meta: set the pointer pointing to extra_meta to NULL

Peter Ross pross at xvid.org
Sat Apr 19 04:12:00 CEST 2014


Fixes ticket #3530.

Signed-off-by: Peter Ross <pross at xvid.org>
---
 libavformat/id3v2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 0321865..4cf8e9b 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -946,6 +946,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)
-- 
1.8.3.2

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140419/0486b2e0/attachment.asc>


More information about the ffmpeg-devel mailing list