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
04108619
Commit
04108619
authored
Jan 11, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oops
Originally committed as revision 2691 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
93e1a0a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
ffplay.c
ffplay.c
+1
-4
No files found.
ffplay.c
View file @
04108619
...
...
@@ -545,7 +545,7 @@ static double get_audio_clock(VideoState *is)
static
double
get_video_clock
(
VideoState
*
is
)
{
double
delta
;
if
(
is
->
paused
)
{
//FIXME timing gets messed after pause
if
(
is
->
paused
)
{
delta
=
0
;
}
else
{
delta
=
(
av_gettime
()
-
is
->
video_current_pts_time
)
/
1000000
.
0
;
...
...
@@ -1055,7 +1055,6 @@ static int audio_decode_frame(VideoState *is, uint8_t *audio_buf, double *pts_pt
pts
=
is
->
audio_clock
;
*
pts_ptr
=
pts
;
n
=
2
*
is
->
audio_st
->
codec
.
channels
;
printf
(
"%f %d %d %d
\n
"
,
is
->
audio_clock
,
is
->
audio_st
->
codec
.
channels
,
data_size
,
is
->
audio_st
->
codec
.
sample_rate
);
is
->
audio_clock
+=
(
double
)
data_size
/
(
double
)(
n
*
is
->
audio_st
->
codec
.
sample_rate
);
#if defined(DEBUG_SYNC)
...
...
@@ -1675,8 +1674,6 @@ void event_loop(void)
do_seek:
if
(
cur_stream
)
{
pos
=
get_master_clock
(
cur_stream
);
printf
(
"%f %f %d %d %d %d
\n
"
,
(
float
)
pos
,
(
float
)
incr
,
cur_stream
->
av_sync_type
==
AV_SYNC_VIDEO_MASTER
,
cur_stream
->
av_sync_type
==
AV_SYNC_AUDIO_MASTER
,
cur_stream
->
video_st
,
cur_stream
->
audio_st
);
pos
+=
incr
;
stream_seek
(
cur_stream
,
(
int64_t
)(
pos
*
AV_TIME_BASE
));
}
...
...
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