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
75a8e0f0
Commit
75a8e0f0
authored
Mar 11, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add avio_skip()
parent
b33fa8a1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
avio.h
libavformat/avio.h
+6
-0
aviobuf.c
libavformat/aviobuf.c
+5
-0
No files found.
libavformat/avio.h
View file @
75a8e0f0
...
...
@@ -476,6 +476,12 @@ int avio_put_str16le(AVIOContext *s, const char *str);
*/
int64_t
avio_seek
(
AVIOContext
*
s
,
int64_t
offset
,
int
whence
);
/**
* Skip given number of bytes forward
* @return new position or AVERROR.
*/
int64_t
avio_skip
(
AVIOContext
*
s
,
int64_t
offset
);
/**
* ftell() equivalent for AVIOContext.
* @return position or AVERROR.
...
...
libavformat/aviobuf.c
View file @
75a8e0f0
...
...
@@ -233,6 +233,11 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
return
offset
;
}
int64_t
avio_skip
(
AVIOContext
*
s
,
int64_t
offset
)
{
return
avio_seek
(
s
,
offset
,
SEEK_CUR
);
}
#if FF_API_OLD_AVIO
int
url_fskip
(
AVIOContext
*
s
,
int64_t
offset
)
{
...
...
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