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:
parent
d2ee9b16fa
commit
760cbc4059
@ -320,6 +320,11 @@ gst_rsvg_dec_parse (GstVideoDecoder * decoder, GstVideoCodecFrame * frame,
|
|||||||
size = i + 6;
|
size = i + 6;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (memcmp (data + i, "</svg:svg>", 10) == 0) {
|
||||||
|
completed = TRUE;
|
||||||
|
size = i + 10;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (completed) {
|
if (completed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user