Commit 9ff1ac59 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

mxfdemux: Don't try parsing empty metadata items

parent 329fe3ee
......@@ -1304,6 +1304,9 @@ gst_mxf_demux_handle_metadata (GstMXFDemux * demux, const MXFUL * key,
return GST_FLOW_OK;
}
if (gst_buffer_get_size (buffer) == 0)
return GST_FLOW_OK;
gst_buffer_map (buffer, &map, GST_MAP_READ);
metadata =
mxf_metadata_new (type, &demux->current_partition->primer, demux->offset,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment