1
0
Fork 0
forked from len0rd/rockbox

Define and use a local APE_MAX function to make the standalone demac decoder compile again.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13601 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2007-06-09 00:58:15 +00:00
parent bcac36468f
commit 6131996538

View file

@ -35,6 +35,11 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
#include "parser.h"
#ifdef APE_MAX
#undef APE_MAX
#endif
#define APE_MAX(a,b) ((a)>(b)?(a):(b))
static inline int16_t get_int16(unsigned char* buf)
{
@ -148,7 +153,7 @@ int ape_parseheaderbuf(unsigned char* buf, struct ape_ctx_t* ape_ctx)
if (ape_ctx->totalframes > 1)
ape_ctx->totalsamples += ape_ctx->blocksperframe * (ape_ctx->totalframes-1);
ape_ctx->numseekpoints = MAX(ape_ctx->maxseekpoints,
ape_ctx->numseekpoints = APE_MAX(ape_ctx->maxseekpoints,
ape_ctx->seektablelength / sizeof(int32_t));
return 0;