From 611469eca020f7623c1964abfcbf42f810c2cce1 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Tue, 25 Jun 2024 12:17:03 +0200 Subject: [PATCH] MT#56465 sdp_parse: add support of `t=` attr parsing Explicitely parse timing at the session level. Change-Id: I2db83d689ce830950eb5cada6426bf41ce331e7f --- daemon/sdp.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/daemon/sdp.c b/daemon/sdp.c index f7e9c32c6..bf017478b 100644 --- a/daemon/sdp.c +++ b/daemon/sdp.c @@ -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;