mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
Drop packets with an invalid replicated data length
Drop packets with an invalid replicated data length instead of continuing with an invalid timestamp and uninitialized payload metadata. All other code assumes that the timestamps are valid.
This commit is contained in:
parent
8ebd13a681
commit
4ff0d1fe52
1 changed files with 3 additions and 0 deletions
|
@ -317,6 +317,9 @@ gst_asf_demux_parse_payload (GstASFDemux * demux, AsfPacket * packet,
|
|||
GST_TIME_ARGS (payload.duration));
|
||||
} else if (payload.rep_data_len != 0) {
|
||||
GST_WARNING_OBJECT (demux, "invalid replicated data length, very bad");
|
||||
*p_data += payload_len;
|
||||
*p_size -= payload_len;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GST_LOG_OBJECT (demux, "media object offset : %u", payload.mo_offset);
|
||||
|
|
Loading…
Reference in a new issue