[FFmpeg-cvslog] sctp: be consistent with socket option level
Sean McGovern
git at videolan.org
Thu May 10 23:33:14 CEST 2012
ffmpeg | branch: master | Sean McGovern <gseanmcg at gmail.com> | Wed May 9 02:13:16 2012 -0400| [ded69c5e21758e2e4a9a7e6ae0fec2d5ad312ba9] | committer: Diego Biurrun
sctp: be consistent with socket option level
Replace SOL_SCTP by the more portable IPPROTO_SCTP.
Signed-off-by: Diego Biurrun <diego at biurrun.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ded69c5e21758e2e4a9a7e6ae0fec2d5ad312ba9
---
libavformat/sctp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/sctp.c b/libavformat/sctp.c
index 3823e03..817b004 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",
More information about the ffmpeg-cvslog
mailing list