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
4fc2c644
Commit
4fc2c644
authored
May 24, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
100l (avi seeking)
Originally committed as revision 3155 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cde073b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
avidec.c
libavformat/avidec.c
+1
-2
utils.c
libavformat/utils.c
+1
-1
No files found.
libavformat/avidec.c
View file @
4fc2c644
...
...
@@ -597,8 +597,7 @@ static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp
return
-
1
;
ast
=
st
->
priv_data
;
/* compute the frame number */
frame_number
=
(
timestamp
*
ast
->
rate
)
/
(
ast
->
scale
*
(
int64_t
)
AV_TIME_BASE
);
frame_number
=
timestamp
;
#ifdef DEBUG_SEEK
printf
(
"timestamp=%0.3f nb_indexes=%d frame_number=%d
\n
"
,
(
double
)
timestamp
/
AV_TIME_BASE
,
...
...
libavformat/utils.c
View file @
4fc2c644
...
...
@@ -558,7 +558,7 @@ static void compute_frame_duration(int *pnum, int *pden,
}
static
int64_t
lsb2full
(
int64_t
lsb
,
int64_t
last_ts
,
int
lsb_bits
){
int64_t
mask
=
(
1LL
<<
lsb_bits
)
-
1
;
int64_t
mask
=
lsb_bits
<
64
?
(
1LL
<<
lsb_bits
)
-
1
:
-
1LL
;
int64_t
delta
=
last_ts
-
mask
/
2
;
return
((
lsb
-
delta
)
&
mask
)
+
delta
;
}
...
...
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