From 760cbc4059c3726f61c83c26cf5efee58c5c3422 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 2 Aug 2018 21:05:24 -0400 Subject: [PATCH] rsvg: Also accept as ending tag Some SVG files created by inkscape use that, such as: https://gitlab.gnome.org/GNOME/pitivi/uploads/8dd8d9d988b5eb6cc38f871196caac6f/Titel-Tafel3.2_anim.svg This is a first patch for https://bugzilla.gnome.org/show_bug.cgi?id=796909 but it is not enough to support animated gifs. --- ext/rsvg/gstrsvgdec.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ext/rsvg/gstrsvgdec.c b/ext/rsvg/gstrsvgdec.c index e50a8978d6..1cf7ea0ddd 100644 --- a/ext/rsvg/gstrsvgdec.c +++ b/ext/rsvg/gstrsvgdec.c @@ -320,6 +320,11 @@ gst_rsvg_dec_parse (GstVideoDecoder * decoder, GstVideoCodecFrame * frame, size = i + 6; break; } + if (memcmp (data + i, "", 10) == 0) { + completed = TRUE; + size = i + 10; + break; + } } if (completed) {