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
This commit is contained in:
@ -43,7 +43,7 @@ namespace {
|
|||||||
// returned. Otherwise, false is returned.
|
// returned. Otherwise, false is returned.
|
||||||
bool ParseSsrc(const std::string& str, uint32_t* ssrc) {
|
bool ParseSsrc(const std::string& str, uint32_t* ssrc) {
|
||||||
if (str.empty())
|
if (str.empty())
|
||||||
return false;
|
return true;
|
||||||
int base = 10;
|
int base = 10;
|
||||||
// Look for "0x" or "0X" at the start and change base to 16 if found.
|
// 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))
|
if ((str.compare(0, 2, "0x") == 0) || (str.compare(0, 2, "0X") == 0))
|
||||||
|
Reference in New Issue
Block a user