Commit 4b2a2969 authored by Timo Rothenpieler's avatar Timo Rothenpieler

avformat/librtmp: check return value of setsockopt

Fixes CID 1396837
parent 0fbc9bbb
......@@ -239,7 +239,10 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
#if CONFIG_NETWORK
if (ctx->buffer_size >= 0 && (flags & AVIO_FLAG_WRITE)) {
int tmp = ctx->buffer_size;
setsockopt(r->m_sb.sb_socket, SOL_SOCKET, SO_SNDBUF, &tmp, sizeof(tmp));
if (setsockopt(r->m_sb.sb_socket, SOL_SOCKET, SO_SNDBUF, &tmp, sizeof(tmp))) {
rc = AVERROR_EXTERNAL;
goto fail;
}
}
#endif
......
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