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
02af4e9a
Commit
02af4e9a
authored
Feb 03, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: rename audio_decode_frame() variable "pts" to "audio_clock0"
The new name better expresses what the variable is.
parent
6e32b377
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ffplay.c
ffplay.c
+4
-4
No files found.
ffplay.c
View file @
02af4e9a
...
...
@@ -2097,7 +2097,7 @@ static int audio_decode_frame(VideoState *is)
int
len1
,
len2
,
data_size
,
resampled_data_size
;
int64_t
dec_channel_layout
;
int
got_frame
;
av_unused
double
pts
;
av_unused
double
audio_clock0
;
int
new_packet
=
0
;
int
flush_complete
=
0
;
int
wanted_nb_samples
;
...
...
@@ -2195,15 +2195,15 @@ static int audio_decode_frame(VideoState *is)
}
/* if no pts, then compute it */
pts
=
is
->
audio_clock
;
audio_clock0
=
is
->
audio_clock
;
is
->
audio_clock
+=
(
double
)
data_size
/
(
is
->
frame
->
channels
*
is
->
frame
->
sample_rate
*
av_get_bytes_per_sample
(
is
->
frame
->
format
));
#ifdef DEBUG
{
static
double
last_clock
;
printf
(
"audio: delay=%0.3f clock=%0.3f
pts
=%0.3f
\n
"
,
printf
(
"audio: delay=%0.3f clock=%0.3f
clock0
=%0.3f
\n
"
,
is
->
audio_clock
-
last_clock
,
is
->
audio_clock
,
pts
);
is
->
audio_clock
,
audio_clock0
);
last_clock
=
is
->
audio_clock
;
}
#endif
...
...
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