diff options
Diffstat (limited to 'src/decode.c')
-rw-r--r-- | src/decode.c | 4 |
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 */ |