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
5c89153e
Commit
5c89153e
authored
Mar 01, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add movi_list offset into index
Originally committed as revision 5084 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
30a43f2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
avidec.c
libavformat/avidec.c
+2
-2
No files found.
libavformat/avidec.c
View file @
5c89153e
...
@@ -467,7 +467,7 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -467,7 +467,7 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
// av_log(NULL, AV_LOG_DEBUG, "%d\n", i);
// av_log(NULL, AV_LOG_DEBUG, "%d\n", i);
if
(
i
>=
0
){
if
(
i
>=
0
){
int64_t
pos
=
best_st
->
index_entries
[
i
].
pos
;
int64_t
pos
=
best_st
->
index_entries
[
i
].
pos
;
pos
+=
avi
->
movi_list
+
best_ast
->
packet_size
-
best_ast
->
remaining
;
pos
+=
best_ast
->
packet_size
-
best_ast
->
remaining
;
url_fseek
(
&
s
->
pb
,
pos
,
SEEK_SET
);
url_fseek
(
&
s
->
pb
,
pos
,
SEEK_SET
);
// av_log(NULL, AV_LOG_DEBUG, "pos=%Ld\n", pos);
// av_log(NULL, AV_LOG_DEBUG, "pos=%Ld\n", pos);
...
@@ -689,6 +689,7 @@ static int avi_read_idx1(AVFormatContext *s, int size)
...
@@ -689,6 +689,7 @@ static int avi_read_idx1(AVFormatContext *s, int size)
#endif
#endif
if
(
i
==
0
&&
pos
>
avi
->
movi_list
)
if
(
i
==
0
&&
pos
>
avi
->
movi_list
)
avi
->
movi_list
=
0
;
//FIXME better check
avi
->
movi_list
=
0
;
//FIXME better check
pos
+=
avi
->
movi_list
;
index
=
((
tag
&
0xff
)
-
'0'
)
*
10
;
index
=
((
tag
&
0xff
)
-
'0'
)
*
10
;
index
+=
((
tag
>>
8
)
&
0xff
)
-
'0'
;
index
+=
((
tag
>>
8
)
&
0xff
)
-
'0'
;
...
@@ -838,7 +839,6 @@ static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp
...
@@ -838,7 +839,6 @@ static int avi_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp
if
(
avi
->
dv_demux
)
if
(
avi
->
dv_demux
)
dv_flush_audio_packets
(
avi
->
dv_demux
);
dv_flush_audio_packets
(
avi
->
dv_demux
);
/* do the seek */
/* do the seek */
pos
+=
avi
->
movi_list
;
url_fseek
(
&
s
->
pb
,
pos
,
SEEK_SET
);
url_fseek
(
&
s
->
pb
,
pos
,
SEEK_SET
);
avi
->
stream_index
=
-
1
;
avi
->
stream_index
=
-
1
;
return
0
;
return
0
;
...
...
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