diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-10-10 20:51:52 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-10 20:51:52 +0200 |
commit | cec7afd03640f7296af1f1f3a3b20845ce37ee39 (patch) | |
tree | 5f46233682b3a17f6adb5b0a04a75e9ec6c769b5 /libavformat/sctp.c | |
parent | fc6aa304596bba3837e1026fe1fb6abba1295ab5 (diff) | |
parent | 09e1ccc8cddc946da5e10841f10dc5ebdd187d9d (diff) | |
download | ffmpeg-cec7afd03640f7296af1f1f3a3b20845ce37ee39.tar.gz |
Merge commit '09e1ccc8cddc946da5e10841f10dc5ebdd187d9d'
* commit '09e1ccc8cddc946da5e10841f10dc5ebdd187d9d':
sctp: Use AVERROR_BUG instead of abort()
Conflicts:
libavformat/sctp.c
See: 2e59142fa9a0db5fab8aa2e676ba524f61280b83
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 35b9ad15ab..d7338950bd 100644 --- a/libavformat/sctp.c +++ b/libavformat/sctp.c @@ -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 |