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
362c17e6
Commit
362c17e6
authored
Oct 18, 2015
by
Rodger Combs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/http: fix incorrect warning in range requests
parent
b3494e3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
http.c
libavformat/http.c
+4
-3
No files found.
libavformat/http.c
View file @
362c17e6
...
...
@@ -1155,15 +1155,16 @@ static int http_buf_read(URLContext *h, uint8_t *buf, int size)
memcpy
(
buf
,
s
->
buf_ptr
,
len
);
s
->
buf_ptr
+=
len
;
}
else
{
int64_t
target_end
=
s
->
end_off
?
s
->
end_off
:
s
->
filesize
;
if
((
!
s
->
willclose
||
s
->
chunksize
<
0
)
&&
s
->
filesize
>=
0
&&
s
->
off
>=
s
->
filesize
)
target_end
>=
0
&&
s
->
off
>=
target_end
)
return
AVERROR_EOF
;
len
=
ffurl_read
(
s
->
hd
,
buf
,
size
);
if
(
!
len
&&
(
!
s
->
willclose
||
s
->
chunksize
<
0
)
&&
s
->
filesize
>=
0
&&
s
->
off
<
s
->
filesize
)
{
target_end
>=
0
&&
s
->
off
<
target_end
)
{
av_log
(
h
,
AV_LOG_ERROR
,
"Stream ends prematurely at %"
PRId64
", should be %"
PRId64
"
\n
"
,
s
->
off
,
s
->
filesize
s
->
off
,
target_end
);
return
AVERROR
(
EIO
);
}
...
...
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