[opus] int operation

Ralph Giles giles at thaumas.net
Wed Aug 22 15:40:28 PDT 2012

On 12-08-22 2:52 PM, Mike Hooper wrote:

> My TI C55xx complier is complaining about (in opus_encoder.c,
> opus_encode()):
>         st->silk_mode.payloadSize_ms = 1000 * frame_size / st->Fs;
> where .payloadSize_ms is opus_int, frame_size is an int, and Fs is a
> long. Should one of these be cast differently?

Fs should be an int instead of a long. It was changed to an opus_int32
in September, so if you update to 0.9.7 or later the problem should go away.

I would suggest working with git master or the 1.0.1 release candidate
source if you're doing a new port.


More information about the opus mailing list