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.
This commit is contained in:
Thibault Saunier 2018-08-02 21:05:24 -04:00
parent d2ee9b16fa
commit 760cbc4059

View file

@ -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) {