Skip to content
Snippets Groups Projects
Commit 21e7be6b authored by Philipp Maier's avatar Philipp Maier
Browse files

Update RTP_EncDec.cc and RTP_Types.ttcn

parent d592b0ac
Branches master
No related tags found
No related merge requests found
......@@ -39,9 +39,11 @@ RTP__messages__union f__RTP__dec(OCTETSTRING const &data){
// A valid RTP packet must have at least 12 header header bytes. Shorter
// packets cannot be valid, so we return an an RTP__messages__union that
// does not have any decoding results in it. See rfc3550 5.1.
if (data_length < 12)
return ret_val;
// just reflects the raw packet as unknown_pdu. See rfc3550 5.1.
if (data_length < 12) {
ret_val.unknown__pdu()=OCTETSTRING(data_length,raw_data);
return ret_val;
}
pt=raw_data[1]&0x7f;
if(raw_data[0]&0x20){
......
......@@ -447,7 +447,8 @@ type record ASP_RTP_Close_session{
type union RTP_messages_union{
PDU_RTCP rtcp,
PDU_RTP rtp
PDU_RTP rtp,
octetstring unknown_pdu
}
type record ASP_RTP_message{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment