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 |
11 #include <assert.h> | 11 #include <assert.h> |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "google/gflags.h" | 15 #include "gflags/gflags.h" |
16 #include "webrtc/base/scoped_ptr.h" | 16 #include "webrtc/base/scoped_ptr.h" |
17 #include "webrtc/modules/audio_coding/neteq/tools/packet.h" | 17 #include "webrtc/modules/audio_coding/neteq/tools/packet.h" |
18 #include "webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h" | 18 #include "webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h" |
19 | 19 |
20 // Flag validator. | 20 // Flag validator. |
21 static bool ValidatePayloadType(const char* flagname, int32_t value) { | 21 static bool ValidatePayloadType(const char* flagname, int32_t value) { |
22 if (value >= 0 && value <= 127) // Value is ok. | 22 if (value >= 0 && value <= 127) // Value is ok. |
23 return true; | 23 return true; |
24 printf("Invalid value for --%s: %d\n", flagname, static_cast<int>(value)); | 24 printf("Invalid value for --%s: %d\n", flagname, static_cast<int>(value)); |
25 return false; | 25 return false; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 red_headers.pop_front(); | 174 red_headers.pop_front(); |
175 delete red; | 175 delete red; |
176 } | 176 } |
177 } | 177 } |
178 } | 178 } |
179 | 179 |
180 fclose(out_file); | 180 fclose(out_file); |
181 | 181 |
182 return 0; | 182 return 0; |
183 } | 183 } |
OLD | NEW |