Commit ded69c5e authored by Sean McGovern's avatar Sean McGovern Committed by Diego Biurrun

sctp: be consistent with socket option level

Replace SOL_SCTP by the more portable IPPROTO_SCTP.
Signed-off-by: 's avatarDiego Biurrun <diego@biurrun.de>
parent 779222db
...@@ -227,7 +227,7 @@ static int sctp_open(URLContext *h, const char *uri, int flags) ...@@ -227,7 +227,7 @@ static int sctp_open(URLContext *h, const char *uri, int flags)
if (s->max_streams) { if (s->max_streams) {
initparams.sinit_max_instreams = s->max_streams; initparams.sinit_max_instreams = s->max_streams;
initparams.sinit_num_ostreams = s->max_streams; initparams.sinit_num_ostreams = s->max_streams;
if (setsockopt(fd, SOL_SCTP, SCTP_INITMSG, &initparams, if (setsockopt(fd, IPPROTO_SCTP, SCTP_INITMSG, &initparams,
sizeof(initparams)) < 0) sizeof(initparams)) < 0)
av_log(h, AV_LOG_ERROR, av_log(h, AV_LOG_ERROR,
"SCTP ERROR: Unable to initialize socket max streams %d\n", "SCTP ERROR: Unable to initialize socket max streams %d\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment