Commit b7e949f3 authored by Thibault Saunier's avatar Thibault Saunier 🌵

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.
parent 1d7a63b4
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment