mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-12 02:54:11 +00:00
asfpacket: skip empty payload packets
... which also avoids assertion failures and possible segfaults later on when possibly trying to join 2 empty buffers.
This commit is contained in:
parent
700d8b1c28
commit
eee31aecb3
1 changed files with 2 additions and 1 deletions
|
@ -381,7 +381,8 @@ gst_asf_demux_parse_payload (GstASFDemux * demux, AsfPacket * packet,
|
|||
|
||||
GST_LOG_OBJECT (demux, "payload length: %u", payload_len);
|
||||
|
||||
if ((stream = gst_asf_demux_get_stream (demux, stream_num))) {
|
||||
if ((stream = gst_asf_demux_get_stream (demux, stream_num))
|
||||
&& payload_len) {
|
||||
payload.buf = asf_packet_create_payload_buffer (packet, p_data, p_size,
|
||||
payload_len);
|
||||
|
||||
|
|
Loading…
Reference in a new issue