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

Unified Diff: webrtc/modules/rtp_rtcp/source/forward_error_correction.h

Issue 2269903002: Add FlexFEC header formatters. (pt. 5) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@header_reader_writer-pt4-generalize_header_formatting
Patch Set: Rebase. Created 4 years, 3 months 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
Index: webrtc/modules/rtp_rtcp/source/forward_error_correction.h
diff --git a/webrtc/modules/rtp_rtcp/source/forward_error_correction.h b/webrtc/modules/rtp_rtcp/source/forward_error_correction.h
index a0600f05bf5863f6c272596d20a3548dbbb216f3..1fbaadf0bd8d21c30a4d987d4f4014ee610fa67b 100644
--- a/webrtc/modules/rtp_rtcp/source/forward_error_correction.h
+++ b/webrtc/modules/rtp_rtcp/source/forward_error_correction.h
@@ -151,6 +151,7 @@ class ForwardErrorCorrection {
// Creates a ForwardErrorCorrection tailored for a specific FEC scheme.
static std::unique_ptr<ForwardErrorCorrection> CreateUlpfec();
+ static std::unique_ptr<ForwardErrorCorrection> CreateFlexfec();
// Generates a list of FEC packets from supplied media packets.
//
@@ -259,7 +260,9 @@ class ForwardErrorCorrection {
// Writes the FEC header fields that are not written by GenerateFecPayloads.
// This includes writing the packet masks.
- void FinalizeFecHeaders(size_t num_fec_packets, uint16_t seq_num_base);
+ void FinalizeFecHeaders(size_t num_fec_packets,
+ uint32_t ssrc,
+ uint16_t seq_num_base);
// Inserts the |received_packets| into the internal received FEC packet list
// or into |recovered_packets|.
@@ -391,6 +394,7 @@ class FecHeaderWriter {
// Writes FEC header.
virtual void FinalizeFecHeader(
+ uint32_t ssrc,
uint16_t seq_num_base,
const uint8_t* packet_mask,
size_t packet_mask_size,

Powered by Google App Engine
This is Rietveld 408576698