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
6e37b458
Commit
6e37b458
authored
Apr 06, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmst: get rid of deprecated AVERRORs
parent
a2018b51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
mmst.c
libavformat/mmst.c
+7
-7
No files found.
libavformat/mmst.c
View file @
6e37b458
...
...
@@ -146,7 +146,7 @@ static int send_command_packet(MMSTContext *mmst)
exact_length
,
write_result
,
write_result
<
0
?
strerror
(
write_result
)
:
"The server closed the connection"
);
return
AVERROR
_IO
;
return
AVERROR
(
EIO
)
;
}
return
0
;
...
...
@@ -268,7 +268,7 @@ static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst)
read_result
,
read_result
<
0
?
strerror
(
read_result
)
:
"The server closed the connection"
);
return
read_result
<
0
?
read_result
:
AVERROR
_IO
;
return
read_result
<
0
?
read_result
:
AVERROR
(
EIO
)
;
}
length_remaining
=
AV_RL32
(
mms
->
in_buffer
+
8
)
+
4
;
...
...
@@ -289,13 +289,13 @@ static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst)
length_remaining
,
read_result
,
read_result
<
0
?
strerror
(
read_result
)
:
"The server closed the connection"
);
return
read_result
<
0
?
read_result
:
AVERROR
_IO
;
return
read_result
<
0
?
read_result
:
AVERROR
(
EIO
)
;
}
packet_type
=
AV_RL16
(
mms
->
in_buffer
+
36
);
if
(
read_result
>=
44
&&
(
hr
=
AV_RL32
(
mms
->
in_buffer
+
40
)))
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Server sent a message with packet type 0x%x and error status code 0x%08x
\n
"
,
packet_type
,
hr
);
return
AVERROR
_UNKNOWN
;
return
AVERROR
(
EINVAL
)
;
}
}
else
{
int
length_remaining
;
...
...
@@ -326,7 +326,7 @@ static MMSSCPacketType get_tcp_server_response(MMSTContext *mmst)
length_remaining
,
read_result
,
read_result
<
0
?
strerror
(
read_result
)
:
"The server closed the connection"
);
return
read_result
<
0
?
read_result
:
AVERROR
_IO
;
return
read_result
<
0
?
read_result
:
AVERROR
(
EIO
)
;
}
// if we successfully read everything.
...
...
@@ -550,7 +550,7 @@ static int mms_open(URLContext *h, const char *uri, int flags)
if
((
mmst
->
incoming_flags
!=
0X08
)
&&
(
mmst
->
incoming_flags
!=
0X0C
))
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"The server does not support MMST (try MMSH or RTSP)
\n
"
);
err
=
AVERROR
_NOFMT
;
err
=
AVERROR
(
EINVAL
)
;
goto
fail
;
}
err
=
ff_mms_asf_header_parser
(
mms
);
...
...
@@ -604,7 +604,7 @@ static int mms_read(URLContext *h, uint8_t *buf, int size)
av_log
(
NULL
,
AV_LOG_ERROR
,
"Incoming pktlen %d is larger than ASF pktsize %d
\n
"
,
mms
->
remaining_in_len
,
mms
->
asf_packet_len
);
result
=
AVERROR
_IO
;
result
=
AVERROR
(
EIO
)
;
}
else
{
// copy the data to the packet buffer.
result
=
ff_mms_read_data
(
mms
,
buf
,
size
);
...
...
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