OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 } | 100 } |
101 if (print_abs_send_time) { | 101 if (print_abs_send_time) { |
102 fprintf(out_file, " AbsSendTime"); | 102 fprintf(out_file, " AbsSendTime"); |
103 } | 103 } |
104 fprintf(out_file, "\n"); | 104 fprintf(out_file, "\n"); |
105 | 105 |
106 uint32_t max_abs_send_time = 0; | 106 uint32_t max_abs_send_time = 0; |
107 int cycles = -1; | 107 int cycles = -1; |
108 std::unique_ptr<webrtc::test::Packet> packet; | 108 std::unique_ptr<webrtc::test::Packet> packet; |
109 while (true) { | 109 while (true) { |
110 packet.reset(file_source->NextPacket()); | 110 packet = file_source->NextPacket(); |
111 if (!packet.get()) { | 111 if (!packet.get()) { |
112 // End of file reached. | 112 // End of file reached. |
113 break; | 113 break; |
114 } | 114 } |
115 // Write packet data to file. Use virtual_packet_length_bytes so that the | 115 // Write packet data to file. Use virtual_packet_length_bytes so that the |
116 // correct packet sizes are printed also for RTP header-only dumps. | 116 // correct packet sizes are printed also for RTP header-only dumps. |
117 fprintf(out_file, | 117 fprintf(out_file, |
118 "%5u %10u %10u %5i %5i %2i %#08X", | 118 "%5u %10u %10u %5i %5i %2i %#08X", |
119 packet->header().sequenceNumber, | 119 packet->header().sequenceNumber, |
120 packet->header().timestamp, | 120 packet->header().timestamp, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 red_headers.pop_front(); | 175 red_headers.pop_front(); |
176 delete red; | 176 delete red; |
177 } | 177 } |
178 } | 178 } |
179 } | 179 } |
180 | 180 |
181 fclose(out_file); | 181 fclose(out_file); |
182 | 182 |
183 return 0; | 183 return 0; |
184 } | 184 } |
OLD | NEW |