projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
webrtc
/
modules
/
audio_coding
/
neteq
/
tools
/
packet_source.h
diff --git
a/src/third_party/webrtc/modules/audio_coding/neteq/tools/packet_source.h
b/src/third_party/webrtc/modules/audio_coding/neteq/tools/packet_source.h
index
669bc14
..
ab9ef83
100644
(file)
--- a/
src/third_party/webrtc/modules/audio_coding/neteq/tools/packet_source.h
+++ b/
src/third_party/webrtc/modules/audio_coding/neteq/tools/packet_source.h
@@
-11,7
+11,10
@@
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_SOURCE_H_
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_SOURCE_H_
#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_SOURCE_H_
#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_PACKET_SOURCE_H_
+#include <bitset>
+
#include "webrtc/base/constructormagic.h"
#include "webrtc/base/constructormagic.h"
+#include "webrtc/typedefs.h"
namespace webrtc {
namespace test {
namespace webrtc {
namespace test {
@@
-28,6
+31,13
@@
class PacketSource {
// depleted, or if an error occurred.
virtual Packet* NextPacket() = 0;
// depleted, or if an error occurred.
virtual Packet* NextPacket() = 0;
+ virtual void FilterOutPayloadType(uint8_t payload_type) {
+ filter_.set(payload_type, true);
+ }
+
+ protected:
+ std::bitset<128> filter_; // Payload type is 7 bits in the RFC.
+
private:
DISALLOW_COPY_AND_ASSIGN(PacketSource);
};
private:
DISALLOW_COPY_AND_ASSIGN(PacketSource);
};