From bd9156a4ada3eb036192f9f82421f38c107f25c9 Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Fri, 24 Jul 2009 00:03:01 +0000 Subject: 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(-) (limited to 'apps') diff --git a/apps/codecs/libcook/cook.c b/apps/codecs/libcook/cook.c index 315fe0aaff..524f5e1ff8 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. */ -- cgit v1.2.3