Skip to content

Commit

Permalink
Merge pull request #4583 from fritsch/xbmc-upstream
Browse files Browse the repository at this point in the history
ffmpeg: Backport c94305a to fix #15085
  • Loading branch information
jmarshallnz committed Apr 21, 2014
2 parents f9d6ae5 + b9cdb15 commit 63ff412
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ffmpeg/libavformat/id3v2.c
Expand Up @@ -822,6 +822,8 @@ void ff_id3v2_free_extra_meta(ID3v2ExtraMeta **extra_meta)
av_freep(&current); av_freep(&current);
current = next; current = next;
} }

*extra_meta = NULL;
} }


int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta **extra_meta) int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta **extra_meta)
Expand Down
@@ -0,0 +1,29 @@
From c94305ae23318c8956a30485cd5642829f4f16a9 Mon Sep 17 00:00:00 2001
From: Peter Ross <pross@xvid.org>
Date: Sat, 19 Apr 2014 12:12:00 +1000
Subject: [PATCH] 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>
---
libavformat/id3v2.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 8a8989b..15b58d7 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -937,6 +937,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.7.10.4

0 comments on commit 63ff412

Please sign in to comment.