aboutsummaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authorPhilipp Hancke <fippo@sip-communicator.org>2020-07-01 21:07:32 +0200
committerCommit Bot <commit-bot@chromium.org>2020-07-01 20:06:06 +0000
commitf2a4ec19d10dfd8f52173aa105cb05152bce5d5c (patch)
tree4f0a9c75d2b4c76224f294b429a9b5931e1e672f /media
parent27398d6632d34df8fd723c2f84d4eaabb2890d1e (diff)
downloadwebrtc-f2a4ec19d10dfd8f52173aa105cb05152bce5d5c.tar.gz
sdp: parse and serialize non-key=value fmtp lines
some codecs like RED and telephone-event have fmtp lines which do not conform to the list-of-key=value convention. Add support for parsing and serializing this by setting the name to the empty string. BUG=webrtc:11640 Change-Id: Ie3ef7c98f756940f97d27a39af0574aa37949f74 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178120 Commit-Queue: Taylor <deadbeef@webrtc.org> Reviewed-by: Justin Uberti <juberti@webrtc.org> Reviewed-by: Taylor <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31609}
Diffstat (limited to 'media')
-rw-r--r--media/base/codec.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/base/codec.h b/media/base/codec.h
index fd8a97c5e4..c3be2334ce 100644
--- a/media/base/codec.h
+++ b/media/base/codec.h
@@ -67,6 +67,8 @@ struct RTC_EXPORT Codec {
int id;
std::string name;
int clockrate;
+ // Non key-value parameters such as the telephone-event "0‐15" are
+ // represented using an empty string as key, i.e. {"": "0-15"}.
CodecParameterMap params;
FeedbackParams feedback_params;