mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
matroskaparse: ignore parsing errors at the end of the file
This is the same change as a3a55305
for the parser.
https://bugzilla.gnome.org/show_bug.cgi?id=774566
This commit is contained in:
parent
dcd3ce9751
commit
7627171566
1 changed files with 6 additions and 1 deletions
|
@ -3011,8 +3011,13 @@ next:
|
|||
|
||||
ret = gst_matroska_read_common_peek_id_length_push (&parse->common,
|
||||
GST_ELEMENT_CAST (parse), &id, &length, &needed);
|
||||
if (G_UNLIKELY (ret != GST_FLOW_OK && ret != GST_FLOW_EOS))
|
||||
if (G_UNLIKELY (ret != GST_FLOW_OK && ret != GST_FLOW_EOS)) {
|
||||
if (parse->common.ebml_segment_length != G_MAXUINT64
|
||||
&& parse->common.offset >=
|
||||
parse->common.ebml_segment_start + parse->common.ebml_segment_length)
|
||||
ret = GST_FLOW_EOS;
|
||||
return ret;
|
||||
}
|
||||
|
||||
GST_LOG_OBJECT (parse, "Offset %" G_GUINT64_FORMAT ", Element id 0x%x, "
|
||||
"size %" G_GUINT64_FORMAT ", needed %d, available %d",
|
||||
|
|
Loading…
Reference in a new issue