Revert r6198 "Expose the original packet length in in the RTP play tools."
TBR=henrik.lundin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/21509004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6200 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
83599cba77
commit
70bb2d5755
@ -103,11 +103,10 @@ class RtpFileReaderImpl : public RtpPacketSourceInterface {
|
||||
}
|
||||
|
||||
virtual int NextPacket(uint8_t* rtp_data, uint32_t* length,
|
||||
uint32_t* time_ms, uint32_t* original_length) {
|
||||
uint32_t* time_ms) {
|
||||
assert(rtp_data);
|
||||
assert(length);
|
||||
assert(time_ms);
|
||||
assert(original_length);
|
||||
|
||||
uint16_t len;
|
||||
uint16_t plen;
|
||||
@ -127,7 +126,6 @@ class RtpFileReaderImpl : public RtpPacketSourceInterface {
|
||||
|
||||
*length = len;
|
||||
*time_ms = offset;
|
||||
*original_length = plen;
|
||||
return kResultSuccess;
|
||||
}
|
||||
|
||||
|
@ -53,10 +53,9 @@ class RtpPacketSourceInterface {
|
||||
// Read next RTP packet into buffer pointed to by rtp_data. On call, 'length'
|
||||
// field must be filled in with the size of the buffer. The actual size of
|
||||
// the packet is available in 'length' upon returning. Time in milliseconds
|
||||
// from start of stream is returned in 'time_ms'. The original full length
|
||||
// of the packet is returned in 'original_length'.
|
||||
// from start of stream is returned in 'time_ms'.
|
||||
virtual int NextPacket(uint8_t* rtp_data, uint32_t* length,
|
||||
uint32_t* time_ms, uint32_t* original_length) = 0;
|
||||
uint32_t* time_ms) = 0;
|
||||
};
|
||||
|
||||
// Implemented by RtpPlayer and given to client as a means to retrieve
|
||||
|
Loading…
Reference in New Issue
Block a user