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
29a8f6b8
Commit
29a8f6b8
authored
Feb 23, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udp: Fix sign of error codes.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b6ff81d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
udp.c
libavformat/udp.c
+4
-4
No files found.
libavformat/udp.c
View file @
29a8f6b8
...
...
@@ -335,7 +335,7 @@ static void *circular_buffer_task( void *_URLContext)
int
len
;
if
(
ff_check_interrupt
(
&
h
->
interrupt_callback
))
{
s
->
circular_buffer_error
=
EINTR
;
s
->
circular_buffer_error
=
AVERROR
(
EINTR
)
;
goto
end
;
}
...
...
@@ -347,7 +347,7 @@ static void *circular_buffer_task( void *_URLContext)
if
(
ret
<
0
)
{
if
(
ff_neterrno
()
==
AVERROR
(
EINTR
))
continue
;
s
->
circular_buffer_error
=
EIO
;
s
->
circular_buffer_error
=
AVERROR
(
EIO
)
;
goto
end
;
}
...
...
@@ -361,14 +361,14 @@ static void *circular_buffer_task( void *_URLContext)
/* No Space left, error, what do we do now */
if
(
left
<
UDP_MAX_PKT_SIZE
+
4
)
{
av_log
(
h
,
AV_LOG_ERROR
,
"circular_buffer: OVERRUN
\n
"
);
s
->
circular_buffer_error
=
EIO
;
s
->
circular_buffer_error
=
AVERROR
(
EIO
)
;
goto
end
;
}
left
=
FFMIN
(
left
,
s
->
fifo
->
end
-
s
->
fifo
->
wptr
);
len
=
recv
(
s
->
udp_fd
,
s
->
tmp
+
4
,
sizeof
(
s
->
tmp
)
-
4
,
0
);
if
(
len
<
0
)
{
if
(
ff_neterrno
()
!=
AVERROR
(
EAGAIN
)
&&
ff_neterrno
()
!=
AVERROR
(
EINTR
))
{
s
->
circular_buffer_error
=
EIO
;
s
->
circular_buffer_error
=
AVERROR
(
EIO
)
;
goto
end
;
}
continue
;
...
...
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