mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
asfdemux: Handle incomplete header in pull mode
pulling headers is meant to complete as a whole. If we don't have enough data, it's an error. Avoids pipeline hangs on corrupted files https://bugzilla.gnome.org/show_bug.cgi?id=774846
This commit is contained in:
parent
45c7826d76
commit
cc04255e94
1 changed files with 2 additions and 0 deletions
|
@ -1245,6 +1245,8 @@ parse_failed:
|
|||
if (buf)
|
||||
gst_buffer_unmap (buf, &map);
|
||||
gst_buffer_replace (&buf, NULL);
|
||||
if (flow == ASF_FLOW_NEED_MORE_DATA)
|
||||
flow = GST_FLOW_ERROR;
|
||||
*pflow = flow;
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue