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
dd80be5b
Commit
dd80be5b
authored
Feb 24, 2010
by
Peter Ross
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
low-complexity Bink file seeking
Originally committed as revision 22022 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
7e276c85
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
bink.c
libavformat/bink.c
+15
-0
No files found.
libavformat/bink.c
View file @
dd80be5b
...
...
@@ -241,6 +241,19 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
return
0
;
}
static
int
read_seek
(
AVFormatContext
*
s
,
int
stream_index
,
int64_t
timestamp
,
int
flags
)
{
BinkDemuxContext
*
bink
=
s
->
priv_data
;
AVStream
*
vst
=
s
->
streams
[
0
];
/* seek to the first frame */
url_fseek
(
s
->
pb
,
vst
->
index_entries
[
0
].
pos
,
SEEK_SET
);
bink
->
video_pts
=
0
;
memset
(
bink
->
audio_pts
,
0
,
sizeof
(
bink
->
audio_pts
));
bink
->
current_track
=
-
1
;
return
0
;
}
AVInputFormat
bink_demuxer
=
{
"bink"
,
NULL_IF_CONFIG_SMALL
(
"Bink"
),
...
...
@@ -248,4 +261,6 @@ AVInputFormat bink_demuxer = {
probe
,
read_header
,
read_packet
,
NULL
,
read_seek
,
};
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