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
This commit is contained in:
Maurus Cuelenaere 2009-07-08 15:31:36 +00:00
parent 3c338766d1
commit 24967bd552

View file

@ -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 */