Browse code

sctp: be consistent with socket option level

Replace SOL_SCTP by the more portable IPPROTO_SCTP.

Signed-off-by: Diego Biurrun <diego@biurrun.de>

Sean McGovern authored on 2012/05/09 15:13:16
Showing 1 changed files
... ...
@@ -227,7 +227,7 @@ static int sctp_open(URLContext *h, const char *uri, int flags)
227 227
     if (s->max_streams) {
228 228
         initparams.sinit_max_instreams = s->max_streams;
229 229
         initparams.sinit_num_ostreams  = s->max_streams;
230
-        if (setsockopt(fd, SOL_SCTP, SCTP_INITMSG, &initparams,
230
+        if (setsockopt(fd, IPPROTO_SCTP, SCTP_INITMSG, &initparams,
231 231
                        sizeof(initparams)) < 0)
232 232
             av_log(h, AV_LOG_ERROR,
233 233
                    "SCTP ERROR: Unable to initialize socket max streams %d\n",