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
81ce3f8e
Commit
81ce3f8e
authored
Oct 17, 2014
by
Andrey Utkin
Committed by
Michael Niedermayer
Oct 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/http: Use ff_http_averror()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
9d86ce78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
http.c
libavformat/http.c
+3
-3
No files found.
libavformat/http.c
View file @
81ce3f8e
...
...
@@ -250,7 +250,7 @@ redo:
fail:
if
(
s
->
hd
)
ffurl_closep
(
&
s
->
hd
);
return
AVERROR
(
EIO
);
return
ff_http_averror
(
s
->
http_code
,
AVERROR
(
EIO
)
);
}
int
ff_http_do_new_request
(
URLContext
*
h
,
const
char
*
uri
)
...
...
@@ -371,7 +371,7 @@ static int check_http_code(URLContext *h, int http_code, const char *end)
(
http_code
!=
407
||
s
->
proxy_auth_state
.
auth_type
!=
HTTP_AUTH_NONE
))
{
end
+=
strspn
(
end
,
SPACE_CHARS
);
av_log
(
h
,
AV_LOG_WARNING
,
"HTTP error %d %s
\n
"
,
http_code
,
end
);
return
AVERROR
(
EIO
);
return
ff_http_averror
(
http_code
,
AVERROR
(
EIO
)
);
}
return
0
;
}
...
...
@@ -1284,7 +1284,7 @@ redo:
if
(
s
->
http_code
<
400
)
return
0
;
ret
=
AVERROR
(
EIO
);
ret
=
ff_http_averror
(
s
->
http_code
,
AVERROR
(
EIO
)
);
fail:
http_proxy_close
(
h
);
...
...
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