NetEq: Change member variables for current RTP types to rtc::Optionals
With this change, the value 0xFF is no longer used to flag that the RTP type is unknown. Instead, an empty value for the rtc::Optional is used. Review-Url: https://codereview.webrtc.org/2290153002 Cr-Commit-Position: refs/heads/master@{#13989}
This commit is contained in:
committed by
Commit bot
parent
9e4a3040ed
commit
da8bbf6e3c
@ -12,6 +12,7 @@
|
||||
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_PACKET_BUFFER_H_
|
||||
|
||||
#include "webrtc/base/constructormagic.h"
|
||||
#include "webrtc/base/optional.h"
|
||||
#include "webrtc/modules/audio_coding/neteq/packet.h"
|
||||
#include "webrtc/typedefs.h"
|
||||
|
||||
@ -59,10 +60,11 @@ class PacketBuffer {
|
||||
// The last three parameters are included for legacy compatibility.
|
||||
// TODO(hlundin): Redesign to not use current_*_payload_type and
|
||||
// decoder_database.
|
||||
virtual int InsertPacketList(PacketList* packet_list,
|
||||
const DecoderDatabase& decoder_database,
|
||||
uint8_t* current_rtp_payload_type,
|
||||
uint8_t* current_cng_rtp_payload_type);
|
||||
virtual int InsertPacketList(
|
||||
PacketList* packet_list,
|
||||
const DecoderDatabase& decoder_database,
|
||||
rtc::Optional<uint8_t>* current_rtp_payload_type,
|
||||
rtc::Optional<uint8_t>* current_cng_rtp_payload_type);
|
||||
|
||||
// Gets the timestamp for the first packet in the buffer and writes it to the
|
||||
// output variable |next_timestamp|.
|
||||
|
||||
Reference in New Issue
Block a user