Switch neteq tools to ABSL_FLAG.

Bug: webrtc:10616
Change-Id: I2aa688f0976d5618347e402f25d8701b0cf5a360
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/144027
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28442}
This commit is contained in:
Mirko Bonadei
2019-06-27 15:59:09 +02:00
committed by Commit Bot
parent e731a2ed98
commit 14be7993c6
6 changed files with 337 additions and 326 deletions

View File

@ -17,14 +17,11 @@
#include "api/array_view.h"
#include "modules/rtp_rtcp/source/byte_io.h"
#include "rtc_base/buffer.h"
#include "rtc_base/flags.h"
namespace webrtc {
namespace test {
namespace {
WEBRTC_DEFINE_bool(help, false, "Print help message");
constexpr size_t kRtpDumpHeaderLength = 8;
// Returns the next packet or an empty buffer if end of file was encountered.
@ -83,10 +80,9 @@ int RunRtpJitter(int argc, char* argv[]) {
"Tool for alternating the arrival times in an RTP dump file.\n"
"Example usage:\n" +
program_name + " input.rtp arrival_times_ms.txt output.rtp\n\n";
if (rtc::FlagList::SetFlagsFromCommandLine(&argc, argv, true) || FLAG_help ||
argc != 4) {
if (argc != 4) {
printf("%s", usage.c_str());
return FLAG_help ? 0 : 1;
return 1;
}
printf("Input RTP file: %s\n", argv[1]);