summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2019-02-12 12:31:42 +0200
committerMart Raudsepp <leio@gentoo.org>2019-02-12 13:09:42 +0200
commit111c5eb603e3a831e41b810786999aeea5ec6eb0 (patch)
tree60b335f7c595924038811941a8961dea8ce8eb09 /media-plugins/gst-plugins-libav/files
parentx11-themes/gnome-themes-standard: arm64 stable (diff)
downloadgentoo-111c5eb603e3a831e41b810786999aeea5ec6eb0.tar.gz
gentoo-111c5eb603e3a831e41b810786999aeea5ec6eb0.tar.bz2
gentoo-111c5eb603e3a831e41b810786999aeea5ec6eb0.zip
media-plugins/gst-plugins-libav: leak fix; bump bundled ffmpeg used with USE=libav
Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'media-plugins/gst-plugins-libav/files')
-rw-r--r--media-plugins/gst-plugins-libav/files/AVOptionsRanges-leak-fix.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/media-plugins/gst-plugins-libav/files/AVOptionsRanges-leak-fix.patch b/media-plugins/gst-plugins-libav/files/AVOptionsRanges-leak-fix.patch
new file mode 100644
index 000000000000..5594dbc1ab80
--- /dev/null
+++ b/media-plugins/gst-plugins-libav/files/AVOptionsRanges-leak-fix.patch
@@ -0,0 +1,34 @@
+From a2c88ec9dadf4a6d7f5f7b16feb2c5c2e155d72d Mon Sep 17 00:00:00 2001
+From: Seungha Yang <seungha.yang@navercorp.com>
+Date: Sun, 13 Jan 2019 00:46:50 +0900
+Subject: [PATCH] avcfg: Fix AVOptionRanges leak
+
+It must be freed with av_opt_freep_ranges as documented.
+---
+ ext/libav/gstavcfg.c | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/ext/libav/gstavcfg.c b/ext/libav/gstavcfg.c
+index 9236078..9d34462 100644
+--- a/ext/libav/gstavcfg.c
++++ b/ext/libav/gstavcfg.c
+@@ -252,10 +252,12 @@ install_opts (GObjectClass * gobject_class, const AVClass ** obj, guint prop_id,
+ if (g_object_class_find_property (gobject_class, name))
+ continue;
+
+- if (av_opt_query_ranges (&r, obj, opt->name, AV_OPT_SEARCH_FAKE_OBJ) >= 0
+- && r->nb_ranges == 1) {
+- min = r->range[0]->value_min;
+- max = r->range[0]->value_max;
++ if (av_opt_query_ranges (&r, obj, opt->name, AV_OPT_SEARCH_FAKE_OBJ) >= 0) {
++ if (r->nb_ranges == 1) {
++ min = r->range[0]->value_min;
++ max = r->range[0]->value_max;
++ }
++ av_opt_freep_ranges (&r);
+ }
+
+ help = g_strdup_printf ("%s%s", opt->help, extra_help);
+--
+2.17.0
+