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
6e1a2dc1
Commit
6e1a2dc1
authored
Jul 19, 2019
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/aviobuf: make AVSEEK_SIZE usable from outside.
parent
2b4c1a0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
aviobuf.c
libavformat/aviobuf.c
+3
-0
No files found.
libavformat/aviobuf.c
View file @
6e1a2dc1
...
@@ -255,6 +255,9 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
...
@@ -255,6 +255,9 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
if
(
!
s
)
if
(
!
s
)
return
AVERROR
(
EINVAL
);
return
AVERROR
(
EINVAL
);
if
((
whence
&
AVSEEK_SIZE
))
return
s
->
seek
?
s
->
seek
(
s
->
opaque
,
offset
,
AVSEEK_SIZE
)
:
AVERROR
(
ENOSYS
);
buffer_size
=
s
->
buf_end
-
s
->
buffer
;
buffer_size
=
s
->
buf_end
-
s
->
buffer
;
// pos is the absolute position that the beginning of s->buffer corresponds to in the file
// pos is the absolute position that the beginning of s->buffer corresponds to in the file
pos
=
s
->
pos
-
(
s
->
write_flag
?
0
:
buffer_size
);
pos
=
s
->
pos
-
(
s
->
write_flag
?
0
:
buffer_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