aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/decode.c')
-rw-r--r--src/decode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/decode.c b/src/decode.c
index 066176116..495251a09 100644
--- a/src/decode.c
+++ b/src/decode.c
@@ -466,9 +466,7 @@ static void decodeParent(PlayerControl * pc, DecoderControl * dc, OutputBuffer *
pc->sampleRate = dc->audioFormat.sampleRate;
pc->bits = dc->audioFormat.bits;
pc->channels = dc->audioFormat.channels;
- sizeToTime = 8.0/cb->audioFormat.bits/
- cb->audioFormat.channels/
- cb->audioFormat.sampleRate;
+ sizeToTime = audioFormatSizeToTime(&cb->audioFormat);
}
else if(dc->state!=DECODE_STATE_START) {
/* the decoder failed */