Convert CorruptionDetectionMessage to FrameInstrumentationSyncData

Bug: webrtc:358039777
Change-Id: I7504573cdee40ee3224242e19c254de815e0311b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/364485
Auto-Submit: Fanny Linderborg <linderborg@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43163}
This commit is contained in:
Fanny Linderborg 2024-10-03 10:31:26 +02:00 committed by WebRTC LUCI CQ
parent 678607501c
commit 4f6f92a986

View File

@ -617,9 +617,9 @@ bool RtpVideoStreamReceiver2::OnReceivedPayloadData(
CorruptionDetectionMessage message;
rtp_packet.GetExtension<CorruptionDetectionExtension>(&message);
if (message.sample_values().empty()) {
// TODO: bugs.webrtc.org/358039777 - Convert message to sync data and
// use that for assignment instead of `std::nullptr`.
video_header.frame_instrumentation_data = std::nullopt;
video_header.frame_instrumentation_data =
ConvertCorruptionDetectionMessageToFrameInstrumentationSyncData(
message, last_corruption_detection_index_);
} else {
video_header.frame_instrumentation_data =
ConvertCorruptionDetectionMessageToFrameInstrumentationData(