From 24967bd552608fef998105228d519317ebd48f27 Mon Sep 17 00:00:00 2001 From: Maurus Cuelenaere Date: Wed, 8 Jul 2009 15:31:36 +0000 Subject: Cook codec: make sure the RMContext get aligned correctly, or we won't be able to find it git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21717 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/cook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/codecs/cook.c b/apps/codecs/cook.c index 7b4b8e7461..cd624abc12 100644 --- a/apps/codecs/cook.c +++ b/apps/codecs/cook.c @@ -34,7 +34,7 @@ COOKContext q; static void init_rm(RMContext *rmctx) { - memcpy(rmctx, ci->id3->id3v2buf, sizeof(RMContext)); + memcpy(rmctx, (void*)(( (int)ci->id3->id3v2buf + 3 ) &~ 3), sizeof(RMContext)); } /* this is the codec entry point */ -- cgit v1.2.3