MT#56465 sdp_parse: add support of `t=` attr parsing

Explicitely parse timing at the session level.

Change-Id: I2db83d689ce830950eb5cada6426bf41ce331e7f
pull/1838/head
Donat Zenichev 2 years ago
parent 41331bfe75
commit 611469eca0

@ -104,6 +104,7 @@ struct sdp_session {
str s;
struct sdp_origin origin;
str session_name;
str session_timing; /* t= */
struct sdp_connection connection;
int rr, rs;
struct sdp_attributes attributes;
@ -1389,11 +1390,17 @@ new_session:
session->session_name = value_str;
break;
case 't':
errstr = "t= line found within media section";
if (media)
goto error;
session->session_timing = value_str;
break;
case 'i':
case 'u':
case 'e':
case 'p':
case 't':
case 'r':
case 'z':
break;

Loading…
Cancel
Save