From c8729c312c54aaf09b9d70e3b19d28ebbdd7aa3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Juho=20Va=CC=88ha=CC=88-Herttua?= Date: Sun, 31 Mar 2013 14:13:36 +0300 Subject: [PATCH] Only accept first rtpmap and fmtp (assume they are for audio) --- src/lib/sdp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/sdp.c b/src/lib/sdp.c index ecd6214..b39661c 100644 --- a/src/lib/sdp.c +++ b/src/lib/sdp.c @@ -75,9 +75,9 @@ parse_sdp_line(sdp_t *sdp, char *line) if (!value) break; *(value++) = '\0'; - if (!strcmp(key, "rtpmap")) { + if (!strcmp(key, "rtpmap") && !sdp->rtpmap) { sdp->rtpmap = value; - } else if (!strcmp(key, "fmtp")) { + } else if (!strcmp(key, "fmtp") && !sdp->fmtp) { sdp->fmtp = value; } else if (!strcmp(key, "rsaaeskey")) { sdp->rsaaeskey = value; -- 2.34.1