summaryrefslogtreecommitdiff
path: root/apps/codecs/libcook
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libcook')
-rw-r--r--apps/codecs/libcook/cook.c2
1 files changed, 1 insertions, 1 deletions
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)
740 q->random_state = 0; 740 q->random_state = 0;
741 741
742 /* Initialize extradata related variables. */ 742 /* Initialize extradata related variables. */
743 q->samples_per_channel = q->samples_per_frame / q->nb_channels; 743 q->samples_per_channel = q->samples_per_frame >> (q->nb_channels-1);
744 q->bits_per_subpacket = rmctx->block_align * 8; 744 q->bits_per_subpacket = rmctx->block_align * 8;
745 745
746 /* Initialize default data states. */ 746 /* Initialize default data states. */