OSDN Git Service

sctp: be consistent with socket option level
authorSean McGovern <gseanmcg@gmail.com>
Wed, 9 May 2012 06:13:16 +0000 (02:13 -0400)
committerDiego Biurrun <diego@biurrun.de>
Wed, 9 May 2012 22:01:45 +0000 (00:01 +0200)
Replace SOL_SCTP by the more portable IPPROTO_SCTP.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavformat/sctp.c

index 3823e03..817b004 100644 (file)
@@ -227,7 +227,7 @@ static int sctp_open(URLContext *h, const char *uri, int flags)
     if (s->max_streams) {
         initparams.sinit_max_instreams = 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)
             av_log(h, AV_LOG_ERROR,
                    "SCTP ERROR: Unable to initialize socket max streams %d\n",