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
7c00d853
Commit
7c00d853
authored
Feb 07, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskadec: support seek to non keyframes
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c0a4871c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
matroskadec.c
libavformat/matroskadec.c
+8
-3
No files found.
libavformat/matroskadec.c
View file @
7c00d853
...
...
@@ -2418,9 +2418,14 @@ static int matroska_read_seek(AVFormatContext *s, int stream_index,
avio_seek
(
s
->
pb
,
st
->
index_entries
[
index_min
].
pos
,
SEEK_SET
);
matroska
->
current_id
=
0
;
st
->
skip_to_keyframe
=
matroska
->
skip_to_keyframe
=
!
(
flags
&
AVSEEK_FLAG_ANY
);
matroska
->
skip_to_timecode
=
st
->
index_entries
[
index
].
timestamp
;
if
(
flags
&
AVSEEK_FLAG_ANY
)
{
st
->
skip_to_keyframe
=
0
;
matroska
->
skip_to_timecode
=
timestamp
;
}
else
{
st
->
skip_to_keyframe
=
1
;
matroska
->
skip_to_timecode
=
st
->
index_entries
[
index
].
timestamp
;
}
matroska
->
skip_to_keyframe
=
1
;
matroska
->
done
=
0
;
matroska
->
num_levels
=
0
;
ff_update_cur_dts
(
s
,
st
,
st
->
index_entries
[
index
].
timestamp
);
...
...
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