RTSP: only skip leading zeros if the next character is also zero (fixes stream ID of 0)
This commit is contained in:
parent
e35085a2b6
commit
4e23bffa42
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