diff options
author | Sean McGovern <gseanmcg@gmail.com> | 2012-05-09 02:13:16 -0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-05-10 00:01:45 +0200 |
commit | ded69c5e21758e2e4a9a7e6ae0fec2d5ad312ba9 (patch) | |
tree | 88421c0dab0267177986d5e516185cab18ec1884 /libavformat/sctp.c | |
parent | 779222dbfe19ebe731dcdff460e1b1807b9285a7 (diff) | |
download | ffmpeg-ded69c5e21758e2e4a9a7e6ae0fec2d5ad312ba9.tar.gz |
sctp: be consistent with socket option level
Replace SOL_SCTP by the more portable IPPROTO_SCTP.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavformat/sctp.c')
-rw-r--r-- | libavformat/sctp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sctp.c b/libavformat/sctp.c index 3823e03ebe..817b0049a9 100644 --- a/libavformat/sctp.c +++ b/libavformat/sctp.c @@ -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", |