Use test::Packet test::PacketSource classes in neteq_rtpplay
This change replaces the old NETEQTEST_RTPpacket and NETEQTEST_DummyRTPpacket with the new test::Packet class. Note that the Packet class automatically handles "dummy" packets (i.e., packets for which only the header and a length field was stored to file) automatically. There is no need to explicitly signal this to the application any longer. The RTP input file is now handled as a test::PacketSource object. Also adding a new ConvertHeader method to the Packet class. This is needed to extract the header information as an alternative data type. Finally, some dead code was deleted from rtp_analyze.cc (unrelated to the reset of this change). BUG=2692 R=minyue@webrtc.org Review URL: https://webrtc-codereview.appspot.com/21139004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6862 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -59,11 +59,6 @@ int main(int argc, char* argv[]) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
FILE* in_file = fopen(argv[1], "rb");
|
||||
if (!in_file) {
|
||||
printf("Cannot open input file %s\n", argv[1]);
|
||||
return -1;
|
||||
}
|
||||
printf("Input file: %s\n", argv[1]);
|
||||
webrtc::scoped_ptr<webrtc::test::RtpFileSource> file_source(
|
||||
webrtc::test::RtpFileSource::Create(argv[1]));
|
||||
@ -140,7 +135,6 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
fclose(in_file);
|
||||
fclose(out_file);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user