Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP Server: DVBC - fix stream id initialization
  • Loading branch information
perexg committed Mar 19, 2015
1 parent db52de8 commit bb5fe11
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/satip/rtsp.c
Expand Up @@ -980,8 +980,13 @@ rtsp_parse_cmd
if (sr < 1000) goto end;
ds = atoi(http_arg_get_remove(&hc->hc_req_args, "ds"));
if (ds < 0 || ds > 255) goto end;
plp = atoi(http_arg_get_remove(&hc->hc_req_args, "plp"));
if (plp < 0 || plp > 255) goto end;
s = http_arg_get_remove(&hc->hc_req_args, "plp");
if (s[0]) {
plp = atoi(http_arg_get_remove(&hc->hc_req_args, "plp"));
if (plp < 0 || plp > 255) goto end;
} else {
plp = DVB_NO_STREAM_ID_FILTER;
}
specinv = atoi(http_arg_get_remove(&hc->hc_req_args, "specinv"));
if (specinv < 0 || specinv > 1) goto end;

Expand Down

0 comments on commit bb5fe11

Please sign in to comment.