Original commit message from CVS:
* gst/gdp/gstgdpdepay.c: (gst_gdp_depay_chain):
Don't validate the payload if there isn't any.
Fixes #525915
this->header = header;
GST_LOG_OBJECT (this,
this->header = header;
GST_LOG_OBJECT (this,
- "read GDP header, payload size %d, switching to state PAYLOAD",
- this->payload_length);
+ "read GDP header, payload size %d, payload type %d, switching to state PAYLOAD",
+ this->payload_length, this->payload_type);
this->state = GST_GDP_DEPAY_STATE_PAYLOAD;
break;
}
this->state = GST_GDP_DEPAY_STATE_PAYLOAD;
break;
}
- if (!gst_dp_validate_payload (GST_DP_HEADER_LENGTH, this->header,
- gst_adapter_peek (this->adapter, this->payload_length))) {
+ if (this->payload_length
+ && (!gst_dp_validate_payload (GST_DP_HEADER_LENGTH, this->header,
+ gst_adapter_peek (this->adapter, this->payload_length)))) {
goto payload_validate_error;
}
goto payload_validate_error;
}