Commit cec7afd0 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '09e1ccc8'

* commit '09e1ccc8':
  sctp: Use AVERROR_BUG instead of abort()

Conflicts:
	libavformat/sctp.c

See: 2e59142fMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents fc6aa304 09e1ccc8
......@@ -298,7 +298,7 @@ static int sctp_write(URLContext *h, const uint8_t *buf, int size)
info.sinfo_stream = AV_RB16(buf);
if (info.sinfo_stream > s->max_streams) {
av_log(h, AV_LOG_ERROR, "bad input data\n");
return AVERROR(EINVAL);
return AVERROR_BUG;
}
ret = ff_sctp_send(s->fd, buf + 2, size - 2, &info, MSG_EOR);
} else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment