[CELT-dev] V11.1 Problem

Mike Hooper mihooper at bellsouth.net
Mon May 9 06:55:54 PDT 2011


Gents,

 

I am getting the following compile error on V11.1 "declaration may not
appear after executable statement in block". This occurs in two places in
celt.c.

 

============================================================================
====================

#ifdef FIXED_POINT

#ifndef DISABLE_FLOAT_API

CELT_STATIC

int celt_encode_with_ec_float(CELTEncoder * restrict st, const float * pcm,
int frame_size, unsigned char *compressed, int nbCompressedBytes, ec_enc
*enc)

{

   int j, ret, C, N;

   VARDECL(celt_int16, in);

   ALLOC_STACK;

   SAVE_STACK;<<<<<<<<<<<<<<<ERROR Here "declaration may not appear after
executable statement in block"

============================================================================
====================

 

.and

 

============================================================================
====================

#ifdef FIXED_POINT

#ifndef DISABLE_FLOAT_API

CELT_STATIC

int celt_decode_with_ec_float(CELTDecoder * restrict st, const unsigned char
*data, int len, float * restrict pcm, int frame_size, ec_dec *dec)

{

   int j, ret, C, N;

   VARDECL(celt_int16, out);

   ALLOC_STACK;

   SAVE_STACK; <<<<<<<<<<<<<<<ERROR Here "declaration may not appear after
executable statement in block"

 

Is there an easy fix for this?

Thx,

MikeH

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20110509/1c4223e5/attachment-0002.htm 


More information about the celt-dev mailing list