|
|
@@ -297,7 +297,7 @@ static int sctp_write(URLContext *h, const uint8_t *buf, int size) |
|
|
struct sctp_sndrcvinfo info = { 0 }; |
|
|
struct sctp_sndrcvinfo info = { 0 }; |
|
|
info.sinfo_stream = AV_RB16(buf); |
|
|
info.sinfo_stream = AV_RB16(buf); |
|
|
if (info.sinfo_stream > s->max_streams) |
|
|
if (info.sinfo_stream > s->max_streams) |
|
|
abort(); |
|
|
|
|
|
|
|
|
return AVERROR_BUG; |
|
|
ret = ff_sctp_send(s->fd, buf + 2, size - 2, &info, MSG_EOR); |
|
|
ret = ff_sctp_send(s->fd, buf + 2, size - 2, &info, MSG_EOR); |
|
|
} else |
|
|
} else |
|
|
ret = send(s->fd, buf, size, MSG_NOSIGNAL); |
|
|
ret = send(s->fd, buf, size, MSG_NOSIGNAL); |
|
|
|