Use backticks not vertical bars to denote variables in comments for /modules/video_coding
Bug: webrtc:12338 Change-Id: Ia8a9adea291d594e4f59a6a1203a7bfb0758adac Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227165 Commit-Queue: Artem Titov <titovartem@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34684}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
7f854bce1f
commit
dcd7fc7ea8
@ -123,7 +123,7 @@ void PacketBuffer::ClearTo(uint16_t seq_num) {
|
||||
return;
|
||||
|
||||
// Avoid iterating over the buffer more than once by capping the number of
|
||||
// iterations to the |size_| of the buffer.
|
||||
// iterations to the `size_` of the buffer.
|
||||
++seq_num;
|
||||
size_t diff = ForwardDiff<uint16_t>(first_seq_num_, seq_num);
|
||||
size_t iterations = std::min(diff, buffer_.size());
|
||||
@ -135,8 +135,8 @@ void PacketBuffer::ClearTo(uint16_t seq_num) {
|
||||
++first_seq_num_;
|
||||
}
|
||||
|
||||
// If |diff| is larger than |iterations| it means that we don't increment
|
||||
// |first_seq_num_| until we reach |seq_num|, so we set it here.
|
||||
// If `diff` is larger than `iterations` it means that we don't increment
|
||||
// `first_seq_num_` until we reach `seq_num`, so we set it here.
|
||||
first_seq_num_ = seq_num;
|
||||
|
||||
is_cleared_to_first_seq_num_ = true;
|
||||
@ -229,7 +229,7 @@ std::vector<std::unique_ptr<PacketBuffer::Packet>> PacketBuffer::FindFrames(
|
||||
uint16_t start_seq_num = seq_num;
|
||||
|
||||
// Find the start index by searching backward until the packet with
|
||||
// the |frame_begin| flag is set.
|
||||
// the `frame_begin` flag is set.
|
||||
int start_index = index;
|
||||
size_t tested_packets = 0;
|
||||
int64_t frame_timestamp = buffer_[start_index]->timestamp;
|
||||
@ -285,7 +285,7 @@ std::vector<std::unique_ptr<PacketBuffer::Packet>> PacketBuffer::FindFrames(
|
||||
start_index = start_index > 0 ? start_index - 1 : buffer_.size() - 1;
|
||||
|
||||
// In the case of H264 we don't have a frame_begin bit (yes,
|
||||
// |frame_begin| might be set to true but that is a lie). So instead
|
||||
// `frame_begin` might be set to true but that is a lie). So instead
|
||||
// we traverese backwards as long as we have a previous packet and
|
||||
// the timestamp of that packet is the same as this one. This may cause
|
||||
// the PacketBuffer to hand out incomplete frames.
|
||||
|
Reference in New Issue
Block a user