Minor modifications to test::RtpFileReader
Adding original_length to the Packet struct. This is populated with the plen value from the RTP dump file. In the case of reading a pcap file, original_length will be equal to length. Also increasing the maximum packet size to 3500 bytes. This is to accomodate some test files that contain PCM16b audio encoding. R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/28609004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7333 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -24,9 +24,14 @@ class RtpFileReader {
|
||||
};
|
||||
|
||||
struct Packet {
|
||||
static const size_t kMaxPacketBufferSize = 1500;
|
||||
// Accommodate for 50 ms packets of 32 kHz PCM16 samples (3200 bytes) plus
|
||||
// some overhead.
|
||||
static const size_t kMaxPacketBufferSize = 3500;
|
||||
uint8_t data[kMaxPacketBufferSize];
|
||||
size_t length;
|
||||
// The length the packet had on wire. Will be different from |length| when
|
||||
// reading a header-only RTP dump.
|
||||
size_t original_length;
|
||||
|
||||
uint32_t time_ms;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user