mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
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
1 changed files with 5 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue