summaryrefslogtreecommitdiff
path: root/ffplay.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-02-03 12:29:46 +0100
committerStefano Sabatini <stefasab@gmail.com>2013-02-03 17:01:56 +0100
commit02af4e9a97ccde619e2123793b11d46f60d6b606 (patch)
tree6890b0473f2512ee68f87c94be2e674f459bcf25 /ffplay.c
parent6e32b377bbb590fa024e0ffe1bc3911033133c59 (diff)
ffplay: rename audio_decode_frame() variable "pts" to "audio_clock0"
The new name better expresses what the variable is.
Diffstat (limited to 'ffplay.c')
-rw-r--r--ffplay.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ffplay.c b/ffplay.c
index 183523ced5..040ddc8489 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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