Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
4b2a2969
Commit
4b2a2969
authored
Jun 11, 2017
by
Timo Rothenpieler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/librtmp: check return value of setsockopt
Fixes CID 1396837
parent
0fbc9bbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
librtmp.c
libavformat/librtmp.c
+4
-1
No files found.
libavformat/librtmp.c
View file @
4b2a2969
...
@@ -239,7 +239,10 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
...
@@ -239,7 +239,10 @@ static int rtmp_open(URLContext *s, const char *uri, int flags)
#if CONFIG_NETWORK
#if CONFIG_NETWORK
if
(
ctx
->
buffer_size
>=
0
&&
(
flags
&
AVIO_FLAG_WRITE
))
{
if
(
ctx
->
buffer_size
>=
0
&&
(
flags
&
AVIO_FLAG_WRITE
))
{
int
tmp
=
ctx
->
buffer_size
;
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
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment