From caf0843d3a59bed9f5c46660fa5b7d7ae3b5cc6a Mon Sep 17 00:00:00 2001 From: saratoga Date: Fri, 24 Jul 2009 00:03:01 +0000 Subject: [PATCH] Remove a divide in the cook's init function. Harmless but might as well drop it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22019 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libcook/cook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/codecs/libcook/cook.c b/apps/codecs/libcook/cook.c index 315fe0aaf..524f5e1ff 100644 --- a/apps/codecs/libcook/cook.c +++ b/apps/codecs/libcook/cook.c @@ -740,7 +740,7 @@ static inline uint32_t get_uint32be(uint8_t *buf) q->random_state = 0; /* Initialize extradata related variables. */ - q->samples_per_channel = q->samples_per_frame / q->nb_channels; + q->samples_per_channel = q->samples_per_frame >> (q->nb_channels-1); q->bits_per_subpacket = rmctx->block_align * 8; /* Initialize default data states. */ -- 2.11.4.GIT