summaryrefslogtreecommitdiff
path: root/ext/rsvg
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2018-08-02 21:05:24 -0400
committerThibault Saunier <tsaunier@igalia.com>2018-08-02 21:11:14 -0400
commit760cbc4059c3726f61c83c26cf5efee58c5c3422 (patch)
tree5ca78b82a00a24defb9fc5749f57b18b1837598e /ext/rsvg
parentd2ee9b16fa7d4d3c2ded648a7606152209813a34 (diff)
downloadgstreamer-plugins-bad-760cbc4059c3726f61c83c26cf5efee58c5c3422.tar.gz
rsvg: Also accept </svg:svg> 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.
Diffstat (limited to 'ext/rsvg')
-rw-r--r--ext/rsvg/gstrsvgdec.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/rsvg/gstrsvgdec.c b/ext/rsvg/gstrsvgdec.c
index e50a8978d..1cf7ea0dd 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, "</svg:svg>", 10) == 0) {
+ completed = TRUE;
+ size = i + 10;
+ break;
+ }
}
if (completed) {