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
af020732
Commit
af020732
authored
Mar 14, 2011
by
Anton Khirnov
Committed by
Ronald S. Bultje
Mar 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: change avio_tell/skip from macros to inline functions
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
59f65d95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
avio.h
libavformat/avio.h
+8
-2
No files found.
libavformat/avio.h
View file @
af020732
...
...
@@ -487,13 +487,19 @@ int64_t avio_seek(AVIOContext *s, int64_t offset, int whence);
* Skip given number of bytes forward
* @return new position or AVERROR.
*/
#define avio_skip(s, offset) avio_seek(s, offset, SEEK_CUR)
static
av_always_inline
int64_t
avio_skip
(
AVIOContext
*
s
,
int64_t
offset
)
{
return
avio_seek
(
s
,
offset
,
SEEK_CUR
);
}
/**
* ftell() equivalent for AVIOContext.
* @return position or AVERROR.
*/
#define avio_tell(s) avio_seek((s), 0, SEEK_CUR)
static
av_always_inline
int64_t
avio_tell
(
AVIOContext
*
s
)
{
return
avio_seek
(
s
,
0
,
SEEK_CUR
);
}
/**
* Get the filesize.
...
...
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