From 9103953b58b5349ec9da727e560913ddb8e084e4 Mon Sep 17 00:00:00 2001 From: "henrik.lundin@webrtc.org" Date: Tue, 7 Oct 2014 07:18:36 +0000 Subject: [PATCH] Fix neteq_rtpplay so that empty SSRC is valid In r7380, the command line flag --ssrc was added to neteq_rtpplay. However, it was not possible to omit that flag, since the validation did not accept an empty string. This CL fixes that. TBR=kwiberg@webrtc.org BUG=2692 Review URL: https://webrtc-codereview.appspot.com/24869004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7382 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc b/webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc index d8dfa324a9..46ef3d08b7 100644 --- a/webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc +++ b/webrtc/modules/audio_coding/neteq/tools/neteq_rtpplay.cc @@ -43,7 +43,7 @@ namespace { // returned. Otherwise, false is returned. bool ParseSsrc(const std::string& str, uint32_t* ssrc) { if (str.empty()) - return false; + return true; int base = 10; // Look for "0x" or "0X" at the start and change base to 16 if found. if ((str.compare(0, 2, "0x") == 0) || (str.compare(0, 2, "0X") == 0))