Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Unified Diff: webrtc/media/base/testutils.cc

Issue 2503403004: Add support for FEC-FR semantics in StreamParams. (Closed)
Patch Set: No inline inside class declaration. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/media/base/testutils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/testutils.cc
diff --git a/webrtc/media/base/testutils.cc b/webrtc/media/base/testutils.cc
index b1f520a929704d9919cf29b9ce2145ff238b19dd..93d1bc0b3df13186bdf74f477c1f069c362a1150 100644
--- a/webrtc/media/base/testutils.cc
+++ b/webrtc/media/base/testutils.cc
@@ -268,4 +268,17 @@ cricket::StreamParams CreateSimWithRtxStreamParams(
return sp;
}
+cricket::StreamParams CreatePrimaryWithFecFrStreamParams(
+ const std::string& cname,
+ uint32_t primary_ssrc,
+ uint32_t flexfec_ssrc) {
+ cricket::StreamParams sp;
+ cricket::SsrcGroup sg(cricket::kFecFrSsrcGroupSemantics,
+ {primary_ssrc, flexfec_ssrc});
+ sp.ssrcs = {primary_ssrc};
+ sp.ssrc_groups.push_back(sg);
+ sp.cname = cname;
+ return sp;
+}
+
} // namespace cricket
« no previous file with comments | « webrtc/media/base/testutils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698