[opus] int operation
Jean-Marc Valin
jmvalin at jmvalin.ca
Wed Aug 22 15:38:36 PDT 2012
On 12-08-22 05: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?
I think this code should be:
st->silk_mode.payloadSize_ms = 1000 * (opus_int32)frame_size / st->Fs;
Will fix.
More information about the opus
mailing list