You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

524 lines
18 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*
  2. * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #include "modules/video_coding/session_info.h"
  11. #include <assert.h>
  12. #include <string.h>
  13. #include <vector>
  14. #include "absl/types/variant.h"
  15. #include "modules/include/module_common_types.h"
  16. #include "modules/include/module_common_types_public.h"
  17. #include "modules/video_coding/codecs/interface/common_constants.h"
  18. #include "modules/video_coding/codecs/vp8/include/vp8_globals.h"
  19. #include "modules/video_coding/jitter_buffer_common.h"
  20. #include "modules/video_coding/packet.h"
  21. #include "rtc_base/logging.h"
  22. namespace webrtc {
  23. namespace {
  24. uint16_t BufferToUWord16(const uint8_t* dataBuffer) {
  25. return (dataBuffer[0] << 8) | dataBuffer[1];
  26. }
  27. } // namespace
  28. VCMSessionInfo::VCMSessionInfo()
  29. : complete_(false),
  30. frame_type_(VideoFrameType::kVideoFrameDelta),
  31. packets_(),
  32. empty_seq_num_low_(-1),
  33. empty_seq_num_high_(-1),
  34. first_packet_seq_num_(-1),
  35. last_packet_seq_num_(-1) {}
  36. VCMSessionInfo::~VCMSessionInfo() {}
  37. void VCMSessionInfo::UpdateDataPointers(const uint8_t* old_base_ptr,
  38. const uint8_t* new_base_ptr) {
  39. for (PacketIterator it = packets_.begin(); it != packets_.end(); ++it)
  40. if ((*it).dataPtr != NULL) {
  41. assert(old_base_ptr != NULL && new_base_ptr != NULL);
  42. (*it).dataPtr = new_base_ptr + ((*it).dataPtr - old_base_ptr);
  43. }
  44. }
  45. int VCMSessionInfo::LowSequenceNumber() const {
  46. if (packets_.empty())
  47. return empty_seq_num_low_;
  48. return packets_.front().seqNum;
  49. }
  50. int VCMSessionInfo::HighSequenceNumber() const {
  51. if (packets_.empty())
  52. return empty_seq_num_high_;
  53. if (empty_seq_num_high_ == -1)
  54. return packets_.back().seqNum;
  55. return LatestSequenceNumber(packets_.back().seqNum, empty_seq_num_high_);
  56. }
  57. int VCMSessionInfo::PictureId() const {
  58. if (packets_.empty())
  59. return kNoPictureId;
  60. if (packets_.front().video_header.codec == kVideoCodecVP8) {
  61. return absl::get<RTPVideoHeaderVP8>(
  62. packets_.front().video_header.video_type_header)
  63. .pictureId;
  64. } else if (packets_.front().video_header.codec == kVideoCodecVP9) {
  65. return absl::get<RTPVideoHeaderVP9>(
  66. packets_.front().video_header.video_type_header)
  67. .picture_id;
  68. } else {
  69. return kNoPictureId;
  70. }
  71. }
  72. int VCMSessionInfo::TemporalId() const {
  73. if (packets_.empty())
  74. return kNoTemporalIdx;
  75. if (packets_.front().video_header.codec == kVideoCodecVP8) {
  76. return absl::get<RTPVideoHeaderVP8>(
  77. packets_.front().video_header.video_type_header)
  78. .temporalIdx;
  79. } else if (packets_.front().video_header.codec == kVideoCodecVP9) {
  80. return absl::get<RTPVideoHeaderVP9>(
  81. packets_.front().video_header.video_type_header)
  82. .temporal_idx;
  83. } else if (packets_.front().video_header.codec == kVideoCodecH264) {
  84. return packets_.front().video_header.frame_marking.temporal_id;
  85. } else {
  86. return kNoTemporalIdx;
  87. }
  88. }
  89. bool VCMSessionInfo::LayerSync() const {
  90. if (packets_.empty())
  91. return false;
  92. if (packets_.front().video_header.codec == kVideoCodecVP8) {
  93. return absl::get<RTPVideoHeaderVP8>(
  94. packets_.front().video_header.video_type_header)
  95. .layerSync;
  96. } else if (packets_.front().video_header.codec == kVideoCodecVP9) {
  97. return absl::get<RTPVideoHeaderVP9>(
  98. packets_.front().video_header.video_type_header)
  99. .temporal_up_switch;
  100. } else if (packets_.front().video_header.codec == kVideoCodecH264) {
  101. return packets_.front().video_header.frame_marking.base_layer_sync;
  102. } else {
  103. return false;
  104. }
  105. }
  106. int VCMSessionInfo::Tl0PicId() const {
  107. if (packets_.empty())
  108. return kNoTl0PicIdx;
  109. if (packets_.front().video_header.codec == kVideoCodecVP8) {
  110. return absl::get<RTPVideoHeaderVP8>(
  111. packets_.front().video_header.video_type_header)
  112. .tl0PicIdx;
  113. } else if (packets_.front().video_header.codec == kVideoCodecVP9) {
  114. return absl::get<RTPVideoHeaderVP9>(
  115. packets_.front().video_header.video_type_header)
  116. .tl0_pic_idx;
  117. } else if (packets_.front().video_header.codec == kVideoCodecH264) {
  118. return packets_.front().video_header.frame_marking.tl0_pic_idx;
  119. } else {
  120. return kNoTl0PicIdx;
  121. }
  122. }
  123. std::vector<NaluInfo> VCMSessionInfo::GetNaluInfos() const {
  124. if (packets_.empty() ||
  125. packets_.front().video_header.codec != kVideoCodecH264)
  126. return std::vector<NaluInfo>();
  127. std::vector<NaluInfo> nalu_infos;
  128. for (const VCMPacket& packet : packets_) {
  129. const auto& h264 =
  130. absl::get<RTPVideoHeaderH264>(packet.video_header.video_type_header);
  131. for (size_t i = 0; i < h264.nalus_length; ++i) {
  132. nalu_infos.push_back(h264.nalus[i]);
  133. }
  134. }
  135. return nalu_infos;
  136. }
  137. void VCMSessionInfo::SetGofInfo(const GofInfoVP9& gof_info, size_t idx) {
  138. if (packets_.empty())
  139. return;
  140. auto* vp9_header = absl::get_if<RTPVideoHeaderVP9>(
  141. &packets_.front().video_header.video_type_header);
  142. if (!vp9_header || vp9_header->flexible_mode)
  143. return;
  144. vp9_header->temporal_idx = gof_info.temporal_idx[idx];
  145. vp9_header->temporal_up_switch = gof_info.temporal_up_switch[idx];
  146. vp9_header->num_ref_pics = gof_info.num_ref_pics[idx];
  147. for (uint8_t i = 0; i < gof_info.num_ref_pics[idx]; ++i) {
  148. vp9_header->pid_diff[i] = gof_info.pid_diff[idx][i];
  149. }
  150. }
  151. void VCMSessionInfo::Reset() {
  152. complete_ = false;
  153. frame_type_ = VideoFrameType::kVideoFrameDelta;
  154. packets_.clear();
  155. empty_seq_num_low_ = -1;
  156. empty_seq_num_high_ = -1;
  157. first_packet_seq_num_ = -1;
  158. last_packet_seq_num_ = -1;
  159. }
  160. size_t VCMSessionInfo::SessionLength() const {
  161. size_t length = 0;
  162. for (PacketIteratorConst it = packets_.begin(); it != packets_.end(); ++it)
  163. length += (*it).sizeBytes;
  164. return length;
  165. }
  166. int VCMSessionInfo::NumPackets() const {
  167. return packets_.size();
  168. }
  169. size_t VCMSessionInfo::InsertBuffer(uint8_t* frame_buffer,
  170. PacketIterator packet_it) {
  171. VCMPacket& packet = *packet_it;
  172. PacketIterator it;
  173. // Calculate the offset into the frame buffer for this packet.
  174. size_t offset = 0;
  175. for (it = packets_.begin(); it != packet_it; ++it)
  176. offset += (*it).sizeBytes;
  177. // Set the data pointer to pointing to the start of this packet in the
  178. // frame buffer.
  179. const uint8_t* packet_buffer = packet.dataPtr;
  180. packet.dataPtr = frame_buffer + offset;
  181. // We handle H.264 STAP-A packets in a special way as we need to remove the
  182. // two length bytes between each NAL unit, and potentially add start codes.
  183. // TODO(pbos): Remove H264 parsing from this step and use a fragmentation
  184. // header supplied by the H264 depacketizer.
  185. const size_t kH264NALHeaderLengthInBytes = 1;
  186. const size_t kLengthFieldLength = 2;
  187. const auto* h264 =
  188. absl::get_if<RTPVideoHeaderH264>(&packet.video_header.video_type_header);
  189. if (h264 && h264->packetization_type == kH264StapA) {
  190. size_t required_length = 0;
  191. const uint8_t* nalu_ptr = packet_buffer + kH264NALHeaderLengthInBytes;
  192. while (nalu_ptr < packet_buffer + packet.sizeBytes) {
  193. size_t length = BufferToUWord16(nalu_ptr);
  194. required_length +=
  195. length + (packet.insertStartCode ? kH264StartCodeLengthBytes : 0);
  196. nalu_ptr += kLengthFieldLength + length;
  197. }
  198. ShiftSubsequentPackets(packet_it, required_length);
  199. nalu_ptr = packet_buffer + kH264NALHeaderLengthInBytes;
  200. uint8_t* frame_buffer_ptr = frame_buffer + offset;
  201. while (nalu_ptr < packet_buffer + packet.sizeBytes) {
  202. size_t length = BufferToUWord16(nalu_ptr);
  203. nalu_ptr += kLengthFieldLength;
  204. frame_buffer_ptr += Insert(nalu_ptr, length, packet.insertStartCode,
  205. const_cast<uint8_t*>(frame_buffer_ptr));
  206. nalu_ptr += length;
  207. }
  208. packet.sizeBytes = required_length;
  209. return packet.sizeBytes;
  210. }
  211. ShiftSubsequentPackets(
  212. packet_it, packet.sizeBytes +
  213. (packet.insertStartCode ? kH264StartCodeLengthBytes : 0));
  214. packet.sizeBytes =
  215. Insert(packet_buffer, packet.sizeBytes, packet.insertStartCode,
  216. const_cast<uint8_t*>(packet.dataPtr));
  217. return packet.sizeBytes;
  218. }
  219. size_t VCMSessionInfo::Insert(const uint8_t* buffer,
  220. size_t length,
  221. bool insert_start_code,
  222. uint8_t* frame_buffer) {
  223. if (insert_start_code) {
  224. const unsigned char startCode[] = {0, 0, 0, 1};
  225. memcpy(frame_buffer, startCode, kH264StartCodeLengthBytes);
  226. }
  227. memcpy(frame_buffer + (insert_start_code ? kH264StartCodeLengthBytes : 0),
  228. buffer, length);
  229. length += (insert_start_code ? kH264StartCodeLengthBytes : 0);
  230. return length;
  231. }
  232. void VCMSessionInfo::ShiftSubsequentPackets(PacketIterator it,
  233. int steps_to_shift) {
  234. ++it;
  235. if (it == packets_.end())
  236. return;
  237. uint8_t* first_packet_ptr = const_cast<uint8_t*>((*it).dataPtr);
  238. int shift_length = 0;
  239. // Calculate the total move length and move the data pointers in advance.
  240. for (; it != packets_.end(); ++it) {
  241. shift_length += (*it).sizeBytes;
  242. if ((*it).dataPtr != NULL)
  243. (*it).dataPtr += steps_to_shift;
  244. }
  245. memmove(first_packet_ptr + steps_to_shift, first_packet_ptr, shift_length);
  246. }
  247. void VCMSessionInfo::UpdateCompleteSession() {
  248. if (HaveFirstPacket() && HaveLastPacket()) {
  249. // Do we have all the packets in this session?
  250. bool complete_session = true;
  251. PacketIterator it = packets_.begin();
  252. PacketIterator prev_it = it;
  253. ++it;
  254. for (; it != packets_.end(); ++it) {
  255. if (!InSequence(it, prev_it)) {
  256. complete_session = false;
  257. break;
  258. }
  259. prev_it = it;
  260. }
  261. complete_ = complete_session;
  262. }
  263. }
  264. bool VCMSessionInfo::complete() const {
  265. return complete_;
  266. }
  267. // Find the end of the NAL unit which the packet pointed to by |packet_it|
  268. // belongs to. Returns an iterator to the last packet of the frame if the end
  269. // of the NAL unit wasn't found.
  270. VCMSessionInfo::PacketIterator VCMSessionInfo::FindNaluEnd(
  271. PacketIterator packet_it) const {
  272. if ((*packet_it).completeNALU == kNaluEnd ||
  273. (*packet_it).completeNALU == kNaluComplete) {
  274. return packet_it;
  275. }
  276. // Find the end of the NAL unit.
  277. for (; packet_it != packets_.end(); ++packet_it) {
  278. if (((*packet_it).completeNALU == kNaluComplete &&
  279. (*packet_it).sizeBytes > 0) ||
  280. // Found next NALU.
  281. (*packet_it).completeNALU == kNaluStart)
  282. return --packet_it;
  283. if ((*packet_it).completeNALU == kNaluEnd)
  284. return packet_it;
  285. }
  286. // The end wasn't found.
  287. return --packet_it;
  288. }
  289. size_t VCMSessionInfo::DeletePacketData(PacketIterator start,
  290. PacketIterator end) {
  291. size_t bytes_to_delete = 0; // The number of bytes to delete.
  292. PacketIterator packet_after_end = end;
  293. ++packet_after_end;
  294. // Get the number of bytes to delete.
  295. // Clear the size of these packets.
  296. for (PacketIterator it = start; it != packet_after_end; ++it) {
  297. bytes_to_delete += (*it).sizeBytes;
  298. (*it).sizeBytes = 0;
  299. (*it).dataPtr = NULL;
  300. }
  301. if (bytes_to_delete > 0)
  302. ShiftSubsequentPackets(end, -static_cast<int>(bytes_to_delete));
  303. return bytes_to_delete;
  304. }
  305. VCMSessionInfo::PacketIterator VCMSessionInfo::FindNextPartitionBeginning(
  306. PacketIterator it) const {
  307. while (it != packets_.end()) {
  308. if (absl::get<RTPVideoHeaderVP8>((*it).video_header.video_type_header)
  309. .beginningOfPartition) {
  310. return it;
  311. }
  312. ++it;
  313. }
  314. return it;
  315. }
  316. VCMSessionInfo::PacketIterator VCMSessionInfo::FindPartitionEnd(
  317. PacketIterator it) const {
  318. assert((*it).codec() == kVideoCodecVP8);
  319. PacketIterator prev_it = it;
  320. const int partition_id =
  321. absl::get<RTPVideoHeaderVP8>((*it).video_header.video_type_header)
  322. .partitionId;
  323. while (it != packets_.end()) {
  324. bool beginning =
  325. absl::get<RTPVideoHeaderVP8>((*it).video_header.video_type_header)
  326. .beginningOfPartition;
  327. int current_partition_id =
  328. absl::get<RTPVideoHeaderVP8>((*it).video_header.video_type_header)
  329. .partitionId;
  330. bool packet_loss_found = (!beginning && !InSequence(it, prev_it));
  331. if (packet_loss_found ||
  332. (beginning && current_partition_id != partition_id)) {
  333. // Missing packet, the previous packet was the last in sequence.
  334. return prev_it;
  335. }
  336. prev_it = it;
  337. ++it;
  338. }
  339. return prev_it;
  340. }
  341. bool VCMSessionInfo::InSequence(const PacketIterator& packet_it,
  342. const PacketIterator& prev_packet_it) {
  343. // If the two iterators are pointing to the same packet they are considered
  344. // to be in sequence.
  345. return (packet_it == prev_packet_it ||
  346. (static_cast<uint16_t>((*prev_packet_it).seqNum + 1) ==
  347. (*packet_it).seqNum));
  348. }
  349. size_t VCMSessionInfo::MakeDecodable() {
  350. size_t return_length = 0;
  351. if (packets_.empty()) {
  352. return 0;
  353. }
  354. PacketIterator it = packets_.begin();
  355. // Make sure we remove the first NAL unit if it's not decodable.
  356. if ((*it).completeNALU == kNaluIncomplete || (*it).completeNALU == kNaluEnd) {
  357. PacketIterator nalu_end = FindNaluEnd(it);
  358. return_length += DeletePacketData(it, nalu_end);
  359. it = nalu_end;
  360. }
  361. PacketIterator prev_it = it;
  362. // Take care of the rest of the NAL units.
  363. for (; it != packets_.end(); ++it) {
  364. bool start_of_nalu = ((*it).completeNALU == kNaluStart ||
  365. (*it).completeNALU == kNaluComplete);
  366. if (!start_of_nalu && !InSequence(it, prev_it)) {
  367. // Found a sequence number gap due to packet loss.
  368. PacketIterator nalu_end = FindNaluEnd(it);
  369. return_length += DeletePacketData(it, nalu_end);
  370. it = nalu_end;
  371. }
  372. prev_it = it;
  373. }
  374. return return_length;
  375. }
  376. bool VCMSessionInfo::HaveFirstPacket() const {
  377. return !packets_.empty() && (first_packet_seq_num_ != -1);
  378. }
  379. bool VCMSessionInfo::HaveLastPacket() const {
  380. return !packets_.empty() && (last_packet_seq_num_ != -1);
  381. }
  382. int VCMSessionInfo::InsertPacket(const VCMPacket& packet,
  383. uint8_t* frame_buffer,
  384. const FrameData& frame_data) {
  385. if (packet.video_header.frame_type == VideoFrameType::kEmptyFrame) {
  386. // Update sequence number of an empty packet.
  387. // Only media packets are inserted into the packet list.
  388. InformOfEmptyPacket(packet.seqNum);
  389. return 0;
  390. }
  391. if (packets_.size() == kMaxPacketsInSession) {
  392. RTC_LOG(LS_ERROR) << "Max number of packets per frame has been reached.";
  393. return -1;
  394. }
  395. // Find the position of this packet in the packet list in sequence number
  396. // order and insert it. Loop over the list in reverse order.
  397. ReversePacketIterator rit = packets_.rbegin();
  398. for (; rit != packets_.rend(); ++rit)
  399. if (LatestSequenceNumber(packet.seqNum, (*rit).seqNum) == packet.seqNum)
  400. break;
  401. // Check for duplicate packets.
  402. if (rit != packets_.rend() && (*rit).seqNum == packet.seqNum &&
  403. (*rit).sizeBytes > 0)
  404. return -2;
  405. if (packet.codec() == kVideoCodecH264) {
  406. frame_type_ = packet.video_header.frame_type;
  407. if (packet.is_first_packet_in_frame() &&
  408. (first_packet_seq_num_ == -1 ||
  409. IsNewerSequenceNumber(first_packet_seq_num_, packet.seqNum))) {
  410. first_packet_seq_num_ = packet.seqNum;
  411. }
  412. if (packet.markerBit &&
  413. (last_packet_seq_num_ == -1 ||
  414. IsNewerSequenceNumber(packet.seqNum, last_packet_seq_num_))) {
  415. last_packet_seq_num_ = packet.seqNum;
  416. }
  417. } else {
  418. // Only insert media packets between first and last packets (when
  419. // available).
  420. // Placing check here, as to properly account for duplicate packets.
  421. // Check if this is first packet (only valid for some codecs)
  422. // Should only be set for one packet per session.
  423. if (packet.is_first_packet_in_frame() && first_packet_seq_num_ == -1) {
  424. // The first packet in a frame signals the frame type.
  425. frame_type_ = packet.video_header.frame_type;
  426. // Store the sequence number for the first packet.
  427. first_packet_seq_num_ = static_cast<int>(packet.seqNum);
  428. } else if (first_packet_seq_num_ != -1 &&
  429. IsNewerSequenceNumber(first_packet_seq_num_, packet.seqNum)) {
  430. RTC_LOG(LS_WARNING)
  431. << "Received packet with a sequence number which is out "
  432. "of frame boundaries";
  433. return -3;
  434. } else if (frame_type_ == VideoFrameType::kEmptyFrame &&
  435. packet.video_header.frame_type != VideoFrameType::kEmptyFrame) {
  436. // Update the frame type with the type of the first media packet.
  437. // TODO(mikhal): Can this trigger?
  438. frame_type_ = packet.video_header.frame_type;
  439. }
  440. // Track the marker bit, should only be set for one packet per session.
  441. if (packet.markerBit && last_packet_seq_num_ == -1) {
  442. last_packet_seq_num_ = static_cast<int>(packet.seqNum);
  443. } else if (last_packet_seq_num_ != -1 &&
  444. IsNewerSequenceNumber(packet.seqNum, last_packet_seq_num_)) {
  445. RTC_LOG(LS_WARNING)
  446. << "Received packet with a sequence number which is out "
  447. "of frame boundaries";
  448. return -3;
  449. }
  450. }
  451. // The insert operation invalidates the iterator |rit|.
  452. PacketIterator packet_list_it = packets_.insert(rit.base(), packet);
  453. size_t returnLength = InsertBuffer(frame_buffer, packet_list_it);
  454. UpdateCompleteSession();
  455. return static_cast<int>(returnLength);
  456. }
  457. void VCMSessionInfo::InformOfEmptyPacket(uint16_t seq_num) {
  458. // Empty packets may be FEC or filler packets. They are sequential and
  459. // follow the data packets, therefore, we should only keep track of the high
  460. // and low sequence numbers and may assume that the packets in between are
  461. // empty packets belonging to the same frame (timestamp).
  462. if (empty_seq_num_high_ == -1)
  463. empty_seq_num_high_ = seq_num;
  464. else
  465. empty_seq_num_high_ = LatestSequenceNumber(seq_num, empty_seq_num_high_);
  466. if (empty_seq_num_low_ == -1 ||
  467. IsNewerSequenceNumber(empty_seq_num_low_, seq_num))
  468. empty_seq_num_low_ = seq_num;
  469. }
  470. } // namespace webrtc