aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/decoder_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index 285e21a6b..fc7ed3900 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -354,7 +354,7 @@ decoder_data(struct decoder *decoder,
length -= nbytes;
decoder->timestamp += (double)nbytes /
- audio_format_time_to_size(&dc->in_audio_format);
+ audio_format_time_to_size(&dc->out_audio_format);
if (dc->song->end_ms > 0 &&
decoder->timestamp >= dc->song->end_ms / 1000.0)