Merge pull request #413 from wooyay/master
RTSP: only skip leading zeros if the next character is also zero
This commit is contained in:
commit
2f4944dc37
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ rtsp_setup_decode( http_client_t *hc, int satip )
|
|||
if (p == NULL)
|
||||
return -EIO;
|
||||
/* zero is valid stream id per specification */
|
||||
while (*p && (*p == '0' || *p < ' '))
|
||||
while (*p && ((*p == '0' && *(p + 1) == '0') || *p < ' '))
|
||||
p++;
|
||||
if (p[0] == '0' && p[1] == '\0') {
|
||||
hc->hc_rtsp_stream_id = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue