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
e6c0297f
Commit
e6c0297f
authored
Jan 10, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing some seek failure issues
Originally committed as revision 2688 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
909678c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
ffplay.c
ffplay.c
+7
-6
avidec.c
libavformat/avidec.c
+3
-1
No files found.
ffplay.c
View file @
e6c0297f
...
...
@@ -1406,15 +1406,16 @@ static int decode_thread(void *arg)
#endif
if
(
is
->
seek_req
)
{
/* XXX: must lock decoder threads */
if
(
is
->
audio_stream
>=
0
)
{
packet_queue_flush
(
&
is
->
audioq
);
}
if
(
is
->
video_stream
>=
0
)
{
packet_queue_flush
(
&
is
->
videoq
);
}
ret
=
av_seek_frame
(
is
->
ic
,
-
1
,
is
->
seek_pos
);
if
(
ret
<
0
)
{
fprintf
(
stderr
,
"%s: error while seeking
\n
"
,
is
->
ic
->
filename
);
}
else
{
if
(
is
->
audio_stream
>=
0
)
{
packet_queue_flush
(
&
is
->
audioq
);
}
if
(
is
->
video_stream
>=
0
)
{
packet_queue_flush
(
&
is
->
videoq
);
}
}
is
->
seek_req
=
0
;
}
...
...
libavformat/avidec.c
View file @
e6c0297f
...
...
@@ -496,7 +496,8 @@ static int avi_load_index(AVFormatContext *s)
AVIContext
*
avi
=
s
->
priv_data
;
ByteIOContext
*
pb
=
&
s
->
pb
;
uint32_t
tag
,
size
;
offset_t
pos
=
url_ftell
(
pb
);
url_fseek
(
pb
,
avi
->
movi_end
,
SEEK_SET
);
#ifdef DEBUG_SEEK
printf
(
"movi_end=0x%llx
\n
"
,
avi
->
movi_end
);
...
...
@@ -529,6 +530,7 @@ static int avi_load_index(AVFormatContext *s)
}
}
the_end:
url_fseek
(
pb
,
pos
,
SEEK_SET
);
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