mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-09 17:44:14 +00:00
flvdemux: Don't pull passed the EOS
When a truncated FLV is provided and processed in pull mode, we may endup trying to pull passed EOS, causing a rather confusing warning as the pull offset is an integer overflow. https://bugzilla.gnome.org/show_bug.cgi?id=787795
This commit is contained in:
parent
cfc1638ca5
commit
307018da89
1 changed files with 3 additions and 0 deletions
|
@ -2570,6 +2570,9 @@ gst_flv_demux_get_metadata (GstFlvDemux * demux)
|
|||
gst_buffer_unref (buffer);
|
||||
buffer = NULL;
|
||||
|
||||
if (G_UNLIKELY (offset < tag_size))
|
||||
goto exit;
|
||||
|
||||
offset -= tag_size;
|
||||
if (GST_FLOW_OK != gst_flv_demux_pull_range (demux, demux->sinkpad, offset,
|
||||
12, &buffer))
|
||||
|
|
Loading…
Reference in a new issue